NetBSD Problem Report #57003
From www@netbsd.org Sat Sep 10 20:58:26 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id BC5DA1A923D
for <gnats-bugs@gnats.NetBSD.org>; Sat, 10 Sep 2022 20:58:25 +0000 (UTC)
Message-Id: <20220910205824.808FC1A9244@mollari.NetBSD.org>
Date: Sat, 10 Sep 2022 20:58:24 +0000 (UTC)
From: yeti@digitalfoto-model-award.de
Reply-To: yeti@digitalfoto-model-award.de
To: gnats-bugs@NetBSD.org
Subject: ftp can't handle HTTP redirections?
X-Send-Pr-Version: www-1.0
>Number: 57003
>Notify-List: kim
>Category: bin
>Synopsis: ftp can't handle HTTP redirections?
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: christos
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Sep 10 21:00:00 +0000 2022
>Closed-Date: Fri Sep 16 16:52:37 +0000 2022
>Last-Modified: Thu Sep 22 03:35:01 +0000 2022
>Originator: yeti
>Release: 9.99.9x
>Organization:
I don't bite – I just want to play!
>Environment:
NetBSD netbsdX-i386 9.99.99 NetBSD 9.99.99 (GENERIC) #0: Tue Aug 30 10:48:31 UTC 2022 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/i386/compile/GENERIC i386
NetBSD netbsdX-amd64 9.99.98 NetBSD 9.99.98 (GENERIC) #0: Sun Jul 17 15:37:10 UTC 2022 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
ftp can't handle HTTP redirections?
I stumbled into this because sysupgrade failed yesterday on i386 and amd64.
>How-To-Repeat:
netbsdX-i386# sysupgrade clean
sysupgrade: I: Cleaning downloaded files
netbsdX-i386# sysupgrade fetch
sysupgrade: I: Downloading https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/i386/binary/sets/base.tgz into /var/cache/sysupgrade
Trying [2a04:4e42:3::262]:443 ...
Requesting https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/i386/binary/sets/base.tgz
Redirected to /pub/NetBSD-daily/HEAD/202209082050Z/i386/binary/sets/base.tgz
ftp: Can't lookup `/pub/NetBSD-daily/HEAD/202209082050Z/i386/binary/sets/base.tgz:ftp': No address associated with hostname
ftp: Can't connect or login to host `/pub/NetBSD-daily/HEAD/202209082050Z/i386/binary/sets/base.tgz:?'
sysupgrade: E: Failed to fetch https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/i386/binary/sets/base.tgz
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: bin-bug-people->kim
Responsible-Changed-By: martin@NetBSD.org
Responsible-Changed-When: Sun, 11 Sep 2022 06:05:06 +0000
Responsible-Changed-Why:
Kim, is the redirect generated here valid? Can you please double check
and then hand the PR over to lukem or mrg (if you can't easily fix it).
Thanks!
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: bin/57003: ftp can't handle HTTP redirections?
Date: Sun, 11 Sep 2022 08:08:00 +0200
curl doesn't like this redirect either, while firefox follows it.
I guess something is wrong on the server side (which recently changed
setup for exactly this link).
Martin
From: Kimmo Suominen <kim@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,
yeti@digitalfoto-model-award.de
Subject: Re: bin/57003: ftp can't handle HTTP redirections?
Date: Sun, 11 Sep 2022 10:03:40 +0300
Hi Martin,
Please include the version of curl and how you invoked it. It works for me (TM):
: beowulf:/tmp/kim; curl -LIvs
https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/i386/binary/sets/base.tgz
> /dev/null
* Trying 2a04:4e42:3a::262:443...
* Connected to nycdn.netbsd.org (2a04:4e42:3a::262) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
* CApath: /etc/ssl/certs
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [112 bytes data]
* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [2843 bytes data]
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
{ [300 bytes data]
* TLSv1.2 (IN), TLS handshake, Server finished (14):
{ [4 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
} [37 bytes data]
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.2 (OUT), TLS handshake, Finished (20):
} [16 bytes data]
* TLSv1.2 (IN), TLS handshake, Finished (20):
{ [16 bytes data]
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use http/1.1
* Server certificate:
* subject: CN=*.netbsd.org
* start date: Aug 7 15:07:30 2022 GMT
* expire date: Sep 8 15:07:29 2023 GMT
* subjectAltName: host "nycdn.netbsd.org" matched cert's "*.netbsd.org"
* issuer: C=BE; O=GlobalSign nv-sa; CN=GlobalSign Atlas R3 DV TLS CA 2022 Q3
* SSL certificate verify ok.
} [5 bytes data]
> HEAD /pub/NetBSD-daily/HEAD/latest/i386/binary/sets/base.tgz HTTP/1.1
> Host: nycdn.netbsd.org
> User-Agent: curl/7.74.0
> Accept: */*
>
{ [5 bytes data]
* Mark bundle as not supporting multiuse
< HTTP/1.1 302 Moved Temporarily
< Connection: keep-alive
< Content-Length: 197
< Location: /pub/NetBSD-daily/HEAD/202209101100Z/i386/binary/sets/base.tgz
< Content-Type: text/html
< Via: 1.1 varnish, 1.1 varnish
< Accept-Ranges: bytes
< Date: Sun, 11 Sep 2022 07:01:50 GMT
< Age: 510
< X-Served-By: cache-lga21964-LGA, cache-hel1410032-HEL
< X-Cache: MISS, HIT
< X-Cache-Hits: 0, 1
< X-Timer: S1662879710.215950,VS0,VE0
<
* Connection #0 to host nycdn.netbsd.org left intact
* Issue another request to this URL:
'https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/202209101100Z/i386/binary/sets/base.tgz'
* Found bundle for host nycdn.netbsd.org: 0x55f3ebc217d0 [serially]
* Can not multiplex, even if we wanted to!
* Re-using existing connection! (#0) with host nycdn.netbsd.org
* Connected to nycdn.netbsd.org (2a04:4e42:3a::262) port 443 (#0)
} [5 bytes data]
> HEAD /pub/NetBSD-daily/HEAD/202209101100Z/i386/binary/sets/base.tgz HTTP/1.1
> Host: nycdn.netbsd.org
> User-Agent: curl/7.74.0
> Accept: */*
>
{ [5 bytes data]
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Connection: keep-alive
< Content-Length: 63777881
< Server: bozohttpd/20210227
< Last-Modified: Sat, 10 Sep 2022 18:22:46 GMT
< Content-Type: application/x-gtar-compressed
< Via: 1.1 varnish, 1.1 varnish
< Accept-Ranges: bytes
< Date: Sun, 11 Sep 2022 07:01:50 GMT
< Age: 483
< X-Served-By: cache-lga21940-LGA, cache-hel1410032-HEL
< X-Cache: HIT, HIT
< X-Cache-Hits: 1, 1
< X-Timer: S1662879710.231237,VS0,VE0
<
* Connection #0 to host nycdn.netbsd.org left intact
Kind regards,
+ Kimmo
From: Kimmo Suominen <kim@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, martin@netbsd.org,
yeti@digitalfoto-model-award.de
Subject: Re: bin/57003 (ftp can't handle HTTP redirections?)
Date: Sun, 11 Sep 2022 10:15:06 +0300
Hi all,
The redirect is valid. A relative URI has been allowed in the
Location: header since at least June 2014 in RFC-7231. It obsoleted
RFC-2616 from June 1999, which did require an absolute URI.
RFC-7231 has been obsoleted by RFC-9110 in June 2022, but the
specification for the Location header did not change.
So ftp(1) appears to have a bug where it is not resolving the relative
URI into an absolute one.
On Debian 11.4:
: beowulf:/tmp/kim; ftp about:version
Version: tnftp 20200705
: beowulf:/tmp/kim; ftp
https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/i386/binary/sets/base.tgz
Trying [2a04:4e42:3a::262]:443 ...
Requesting https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/i386/binary/sets/base.tgz
Redirected to /pub/NetBSD-daily/HEAD/202209101100Z/i386/binary/sets/base.tgz
ftp: Can't lookup
`/pub/NetBSD-daily/HEAD/202209101100Z/i386/binary/sets/base.tgz:ftp':
Name or service not known
ftp: Can't connect or login to host
`/pub/NetBSD-daily/HEAD/202209101100Z/i386/binary/sets/base.tgz:?'
Exit 1
On NetBSD 9.99.99 (202208051900Z):
: revolutions:/tmp/kim; ftp about:version
Version: NetBSD-ftp 20210826
: revolutions:/tmp/kim; ftp
https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/i386/binary/sets/base.tgz
Trying [2a04:4e42:3a::262]:443 ...
Requesting https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/i386/binary/sets/base.tgz
Redirected to /pub/NetBSD-daily/HEAD/202209101100Z/i386/binary/sets/base.tgz
ftp: Can't lookup
`/pub/NetBSD-daily/HEAD/202209101100Z/i386/binary/sets/base.tgz:ftp':
No address associated with hostname
ftp: Can't connect or login to host
`/pub/NetBSD-daily/HEAD/202209101100Z/i386/binary/sets/base.tgz:?'
Exit 1
Kind regards,
+ Kimmo
From: Kimmo Suominen <kim@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, martin@netbsd.org,
yeti@digitalfoto-model-award.de
Subject: Re: bin/57003 (ftp can't handle HTTP redirections?)
Date: Sun, 11 Sep 2022 10:16:30 +0300
https://www.rfc-editor.org/rfc/rfc9110#name-location
From: Martin Husemann <martin@duskware.de>
To: Kimmo Suominen <kim@netbsd.org>
Cc: gnats-bugs@netbsd.org
Subject: Re: bin/57003: ftp can't handle HTTP redirections?
Date: Sun, 11 Sep 2022 09:48:20 +0200
On Sun, Sep 11, 2022 at 10:03:40AM +0300, Kimmo Suominen wrote:
> Hi Martin,
>
> Please include the version of curl and how you invoked it. It works for me (TM):
I guess I got lost in unparsable output from curl and its command args
hell.
Martin
Responsible-Changed-From-To: kim->lukem
Responsible-Changed-By: kim@NetBSD.org
Responsible-Changed-When: Sun, 11 Sep 2022 07:59:16 +0000
Responsible-Changed-Why:
This is best fixed in ftp(1) as it is non-trivial to issue absolute URIs
in the redirects due to not wanting to redirect away from the CDN. I.e.
we would not want to redirect https://nycdn --> http://nyftp here.
Looking at the ftp(1) code, one idea could be to augment parse_url() so
that it can take an additional struct urlinfo for "filling in" missing
pieces of the url argument. This is more invasive than I'm prepared to
dive into right now. :)
Then call parse_url() in the redirect case to ensure an aboslute URI
is passed to go_fetch().
Kind regards,
+ Kimmo
From: Kimmo Suominen <kim@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,
yeti@digitalfoto-model-award.de
Subject: Re: bin/57003: ftp can't handle HTTP redirections?
Date: Sun, 11 Sep 2022 19:56:55 +0300
Proposed patch:
http://ftp.netbsd.org/pub/NetBSD/misc/kim/ftp-relative-redirect.diff
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/57003 CVS commit: src/usr.bin/ftp
Date: Sun, 11 Sep 2022 16:49:28 -0400
Module Name: src
Committed By: christos
Date: Sun Sep 11 20:49:27 UTC 2022
Modified Files:
src/usr.bin/ftp: fetch.c
Log Message:
PR/57003: Handle relative URLs (patch by kim@)
To generate a diff of this commit:
cvs rdiff -u -r1.234 -r1.235 src/usr.bin/ftp/fetch.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Kimmo Suominen <kim@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: PR/57003 CVS commit: src/usr.bin/ftp
Date: Mon, 12 Sep 2022 09:13:58 +0300
Hi Christos,
Please pull this up to netbsd-9 and netbsd-8 so that tracking the
stable branches is possible with our tools.
I started to test a pullup to netbsd-9, but it did not apply cleanly.
While that one chunk was easy to resolve, the resulting patch had a
lot of changes not related to fixing the relative redirects, but were
included in the same commit. I think it is best for you to decide
whether to pull up ftp from HEAD in total, or to produce some kind of
minimal diff instead.
Thanks,
+ Kimmo
Responsible-Changed-From-To: lukem->christos
Responsible-Changed-By: kim@NetBSD.org
Responsible-Changed-When: Mon, 12 Sep 2022 06:18:04 +0000
Responsible-Changed-Why:
Needs pullups to netbsd-9 and netbsd-8
From: Christos Zoulas <christos@zoulas.com>
To: gnats-bugs@netbsd.org
Cc: lukem@netbsd.org,
gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org,
yeti@digitalfoto-model-award.de,
kim@netbsd.org
Subject: Re: PR/57003 CVS commit: src/usr.bin/ftp
Date: Mon, 12 Sep 2022 09:15:21 -0400
--Apple-Mail=_6FC5B67D-1CFB-41E4-8FFB-573D1CC61B41
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=us-ascii
Thanks, I will ask for a pull to head!
christos
--Apple-Mail=_6FC5B67D-1CFB-41E4-8FFB-573D1CC61B41
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename=signature.asc
Content-Type: application/pgp-signature;
name=signature.asc
Content-Description: Message signed with OpenPGP
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
iF0EARECAB0WIQS+BJlbqPkO0MDBdsRxESqxbLM7OgUCYx8w6QAKCRBxESqxbLM7
OmZ/AJ4nH6oX//vwAyZ7cq1mGHcxDPe9NwCfWIboug1frCKLaG9GOcLRy/17ZSk=
=jfog
-----END PGP SIGNATURE-----
--Apple-Mail=_6FC5B67D-1CFB-41E4-8FFB-573D1CC61B41--
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/57003 CVS commit: [netbsd-9] src/usr.bin/ftp
Date: Mon, 12 Sep 2022 14:42:56 +0000
Module Name: src
Committed By: martin
Date: Mon Sep 12 14:42:56 UTC 2022
Modified Files:
src/usr.bin/ftp [netbsd-9]: Makefile fetch.c ftp.1 ftp_var.h main.c
ssl.c util.c version.h
Log Message:
Catch up to current, requested by christos in ticket #1523
usr.bin/ftp/Makefile up to 1.39
usr.bin/ftp/fetch.c up to 1.235
usr.bin/ftp/ftp.1 up to 1.147
usr.bin/ftp/ftp_var.h up to 1.86
usr.bin/ftp/main.c up to 1.128
usr.bin/ftp/ssl.c up to 1.11
usr.bin/ftp/util.c up to 1.164
usr.bin/ftp/version.h up to 1.94
PR 57003: Support relative redirects.
To generate a diff of this commit:
cvs rdiff -u -r1.37.12.1 -r1.37.12.2 src/usr.bin/ftp/Makefile
cvs rdiff -u -r1.231.2.2 -r1.231.2.3 src/usr.bin/ftp/fetch.c
cvs rdiff -u -r1.136.8.1 -r1.136.8.2 src/usr.bin/ftp/ftp.1
cvs rdiff -u -r1.85 -r1.85.6.1 src/usr.bin/ftp/ftp_var.h
cvs rdiff -u -r1.126 -r1.126.2.1 src/usr.bin/ftp/main.c
cvs rdiff -u -r1.8.2.2 -r1.8.2.3 src/usr.bin/ftp/ssl.c
cvs rdiff -u -r1.160.2.1 -r1.160.2.2 src/usr.bin/ftp/util.c
cvs rdiff -u -r1.87.18.3 -r1.87.18.4 src/usr.bin/ftp/version.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/57003 CVS commit: [netbsd-8] src/usr.bin/ftp
Date: Mon, 12 Sep 2022 14:46:52 +0000
Module Name: src
Committed By: martin
Date: Mon Sep 12 14:46:51 UTC 2022
Modified Files:
src/usr.bin/ftp [netbsd-8]: Makefile cmds.c complete.c domacro.c
extern.h fetch.c ftp.1 ftp.c ftp_var.h main.c progressbar.c
progressbar.h ssl.c ssl.h util.c version.h
Log Message:
Catch up to current, requested by christos in ticket #1763:
usr.bin/ftp/Makefile up to 1.39
usr.bin/ftp/cmds.c up to 1.141
usr.bin/ftp/complete.c up to 1.47
usr.bin/ftp/domacro.c up to 1.23
usr.bin/ftp/extern.h up to 1.82
usr.bin/ftp/fetch.c up to 1.235
usr.bin/ftp/ftp.1 up to 1.147
usr.bin/ftp/ftp.c up to 1.174
usr.bin/ftp/ftp_var.h up to 1.86
usr.bin/ftp/main.c up to 1.128
usr.bin/ftp/progressbar.c up to 1.24
usr.bin/ftp/progressbar.h up to 1.9
usr.bin/ftp/ssl.c up to 1.11
usr.bin/ftp/ssl.h up to 1.5
usr.bin/ftp/util.c up to 1.164
usr.bin/ftp/version.h up to 1.94
ftp(1): validate address from PASV and LPSV response.
ftp(1): use raw write(2) instead of fwrite(3) to avoid stream
corruption because of the progress bar interrupts.
Fixes for PR 56219 and PR 55857.
PR 57003: Support relative redirects.
To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.37.2.1 src/usr.bin/ftp/Makefile
cvs rdiff -u -r1.137 -r1.137.8.1 src/usr.bin/ftp/cmds.c
cvs rdiff -u -r1.46 -r1.46.38.1 src/usr.bin/ftp/complete.c
cvs rdiff -u -r1.22 -r1.22.38.1 src/usr.bin/ftp/domacro.c
cvs rdiff -u -r1.80 -r1.80.24.1 src/usr.bin/ftp/extern.h
cvs rdiff -u -r1.228 -r1.228.4.1 src/usr.bin/ftp/fetch.c
cvs rdiff -u -r1.135 -r1.135.8.1 src/usr.bin/ftp/ftp.1
cvs rdiff -u -r1.167 -r1.167.6.1 src/usr.bin/ftp/ftp.c
cvs rdiff -u -r1.84 -r1.84.8.1 src/usr.bin/ftp/ftp_var.h
cvs rdiff -u -r1.123 -r1.123.8.1 src/usr.bin/ftp/main.c
cvs rdiff -u -r1.22 -r1.22.24.1 src/usr.bin/ftp/progressbar.c
cvs rdiff -u -r1.8 -r1.8.38.1 src/usr.bin/ftp/progressbar.h
cvs rdiff -u -r1.5 -r1.5.8.1 src/usr.bin/ftp/ssl.c
cvs rdiff -u -r1.3 -r1.3.8.1 src/usr.bin/ftp/ssl.h
cvs rdiff -u -r1.158 -r1.158.22.1 src/usr.bin/ftp/util.c
cvs rdiff -u -r1.87 -r1.87.8.1 src/usr.bin/ftp/version.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/57003 CVS commit: [netbsd-9] src/usr.bin/ftp
Date: Mon, 12 Sep 2022 17:06:56 +0000
Module Name: src
Committed By: martin
Date: Mon Sep 12 17:06:56 UTC 2022
Modified Files:
src/usr.bin/ftp [netbsd-9]: Makefile cmds.c fetch.c ftp.1 ftp.c
ftp_var.h main.c progressbar.c progressbar.h ssl.c ssl.h util.c
version.h
Log Message:
Catch up to current, requested by christos in ticket #1523
usr.bin/ftp/Makefile up to 1.39
usr.bin/ftp/fetch.c up to 1.235
usr.bin/ftp/ftp.1 up to 1.147
usr.bin/ftp/ftp_var.h up to 1.86
usr.bin/ftp/main.c up to 1.128
usr.bin/ftp/ssl.c up to 1.12
usr.bin/ftp/util.c up to 1.164
usr.bin/ftp/version.h up to 1.94
PR 57003: Support relative redirects.
To generate a diff of this commit:
cvs rdiff -u -r1.37.12.3 -r1.37.12.4 src/usr.bin/ftp/Makefile
cvs rdiff -u -r1.140.2.1 -r1.140.2.2 src/usr.bin/ftp/cmds.c
cvs rdiff -u -r1.231.2.4 -r1.231.2.5 src/usr.bin/ftp/fetch.c
cvs rdiff -u -r1.136.8.3 -r1.136.8.4 src/usr.bin/ftp/ftp.1
cvs rdiff -u -r1.168.2.6 -r1.168.2.7 src/usr.bin/ftp/ftp.c
cvs rdiff -u -r1.85.6.2 -r1.85.6.3 src/usr.bin/ftp/ftp_var.h
cvs rdiff -u -r1.126.2.2 -r1.126.2.3 src/usr.bin/ftp/main.c
cvs rdiff -u -r1.23.2.1 -r1.23.2.2 src/usr.bin/ftp/progressbar.c
cvs rdiff -u -r1.8.48.1 -r1.8.48.2 src/usr.bin/ftp/progressbar.h
cvs rdiff -u -r1.8.2.4 -r1.8.2.5 src/usr.bin/ftp/ssl.c
cvs rdiff -u -r1.4.2.1 -r1.4.2.2 src/usr.bin/ftp/ssl.h
cvs rdiff -u -r1.160.2.3 -r1.160.2.4 src/usr.bin/ftp/util.c
cvs rdiff -u -r1.87.18.5 -r1.87.18.6 src/usr.bin/ftp/version.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/57003 CVS commit: [netbsd-8] src/usr.bin/ftp
Date: Mon, 12 Sep 2022 17:08:14 +0000
Module Name: src
Committed By: martin
Date: Mon Sep 12 17:08:13 UTC 2022
Modified Files:
src/usr.bin/ftp [netbsd-8]: Makefile cmds.c complete.c domacro.c
extern.h fetch.c ftp.1 ftp.c ftp_var.h main.c progressbar.c
progressbar.h ssl.c ssl.h util.c version.h
Log Message:
Catch up to current, requested by christos in ticket #1763:
usr.bin/ftp/Makefile up to 1.39
usr.bin/ftp/cmds.c up to 1.141
usr.bin/ftp/complete.c up to 1.47
usr.bin/ftp/domacro.c up to 1.23
usr.bin/ftp/extern.h up to 1.82
usr.bin/ftp/fetch.c up to 1.235
usr.bin/ftp/ftp.1 up to 1.147
usr.bin/ftp/ftp.c up to 1.174
usr.bin/ftp/ftp_var.h up to 1.86
usr.bin/ftp/main.c up to 1.128
usr.bin/ftp/progressbar.c up to 1.24
usr.bin/ftp/progressbar.h up to 1.9
usr.bin/ftp/ssl.c up to 1.12
usr.bin/ftp/ssl.h up to 1.5
usr.bin/ftp/util.c up to 1.164
usr.bin/ftp/version.h up to 1.94
ftp(1): validate address from PASV and LPSV response.
ftp(1): use raw write(2) instead of fwrite(3) to avoid stream
corruption because of the progress bar interrupts.
Fixes for PR 56219 and PR 55857.
PR 57003: Support relative redirects.
To generate a diff of this commit:
cvs rdiff -u -r1.37.2.2 -r1.37.2.3 src/usr.bin/ftp/Makefile
cvs rdiff -u -r1.137.8.2 -r1.137.8.3 src/usr.bin/ftp/cmds.c
cvs rdiff -u -r1.46.38.2 -r1.46.38.3 src/usr.bin/ftp/complete.c
cvs rdiff -u -r1.22.38.2 -r1.22.38.3 src/usr.bin/ftp/domacro.c
cvs rdiff -u -r1.80.24.2 -r1.80.24.3 src/usr.bin/ftp/extern.h
cvs rdiff -u -r1.228.4.2 -r1.228.4.3 src/usr.bin/ftp/fetch.c
cvs rdiff -u -r1.135.8.2 -r1.135.8.3 src/usr.bin/ftp/ftp.1
cvs rdiff -u -r1.167.6.2 -r1.167.6.3 src/usr.bin/ftp/ftp.c
cvs rdiff -u -r1.84.8.2 -r1.84.8.3 src/usr.bin/ftp/ftp_var.h
cvs rdiff -u -r1.123.8.2 -r1.123.8.3 src/usr.bin/ftp/main.c
cvs rdiff -u -r1.22.24.2 -r1.22.24.3 src/usr.bin/ftp/progressbar.c
cvs rdiff -u -r1.8.38.2 -r1.8.38.3 src/usr.bin/ftp/progressbar.h
cvs rdiff -u -r1.5.8.2 -r1.5.8.3 src/usr.bin/ftp/ssl.c
cvs rdiff -u -r1.3.8.2 -r1.3.8.3 src/usr.bin/ftp/ssl.h
cvs rdiff -u -r1.158.22.2 -r1.158.22.3 src/usr.bin/ftp/util.c
cvs rdiff -u -r1.87.8.2 -r1.87.8.3 src/usr.bin/ftp/version.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: kim@NetBSD.org
State-Changed-When: Fri, 16 Sep 2022 16:52:37 +0000
State-Changed-Why:
Patched in HEAD and pulled up to netbsd-9 and netbsd-8.
Thanks for the report,
+ Kimmo
From: "Luke Mewburn" <lukem@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/57003 CVS commit: src/usr.bin/ftp
Date: Thu, 22 Sep 2022 03:31:04 +0000
Module Name: src
Committed By: lukem
Date: Thu Sep 22 03:31:04 UTC 2022
Modified Files:
src/usr.bin/ftp: version.h
Log Message:
update ftp version to 20220911
PR/57003: Handle relative URLs (patch by kim@)
To generate a diff of this commit:
cvs rdiff -u -r1.94 -r1.95 src/usr.bin/ftp/version.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2022
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.