CVSROOT:        /cvs
Module name:    src
Changes by:     st...@cvs.openbsd.org   2009/08/26 05:54:31

Modified files:
        usr.bin/ftp    : fetch.c 

Log message:
In "auto-fetch" mode without -o, the filename to save under is derived
from the URL. In cases where the URL supplied on the command-line returned
an HTTP redirection, ftp(1) was changing the filename to one derived from
the redirected URL. Change this to always use a name derived from the
command-line URL.

Avoids unexpected behaviour with URI-encoded redirection URLs as seen
by matecocido on misc@, and avoids surprises when the redirection is
to an unexpected filename. No change when -o is used.

ok martynas@ deraadt@ "I totally approve" halex@

Reply via email to