History log of /freebsd-10.0-release/usr.bin/ftp/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


223328 20-Jun-2011 gavin

Merge tnftp-20100108 from the vendor branch into head.

PR: bin/112288 bin/120256 bin/129014 bin/145528
MFC after: 1 month


201386 02-Jan-2010 ed

Build usr.bin/ with WARNS=6 by default.

Also add some missing $FreeBSD$ to keep svn happy.


160750 27-Jul-2006 yar

Obey MK_INET6_SUPPORT.


125503 05-Feb-2004 ru

Fixed style of DPADD and LDADD assignments as per style.Makefile(5).


116823 25-Jun-2003 mikeh

Restore INET6 option from config.h.

Submitted by: David Malone <dwmalone@maths.tcd.ie>


116427 16-Jun-2003 mikeh

Update for latest lukemftp import.


98250 15-Jun-2002 mikeh

Update for lukemftp-1.6-beta2.


87824 13-Dec-2001 mikeh

Connect lukemftp to the build as the default ftp client. Lukemftp
supports most of the previous features of FreeBSD ftp, but has been
better maintained and includes new features.


86550 18-Nov-2001 iedowse

Make completion work with filenames containing spaces.

PR: bin/23526
Submitted by: root@yoda.fwe.pi.musin.de
MFC after: 1 week


84262 01-Oct-2001 obrien

Adjust to the libedit enhancements some functions now take more parameters.

Partially submitted by: kris


82772 01-Sep-2001 ache

strtol -> strtoll (for off_t file size)


82767 01-Sep-2001 ache

File positions are off_t nowdays, not long, so:
long -> off_t
fseek -> fseeko

NOTE: that fseek not works for >long offsets files per POSIX:

[EOVERFLOW] For fseek( ), the resulting file offset would be a value which
cannot be represented correctly in an object of type long.


82579 30-Aug-2001 mike

Revert the previous delta and apply a better fix which corrects
a check on the final snprintf and reduces duplicated code.

Submitted by: brian


82545 30-Aug-2001 alex

Remove whitespace at end of line I happened to find during my last edit.


82544 30-Aug-2001 alex

Add support for proper URI encoding, using strvisx(3)'s VIS_HTTPSTYLE.

Requests through a proxy are still broken for URIs that contain
blanks, since this required a bigger rewrite of the whole function.


82540 30-Aug-2001 mike

Add support for HTTP/1.1 name-based virtual hosts. Also, use
asprintf(3) when creating the request string, as the length of
a path is defined as unlimited by the standard and limiting the
total request to 4K is awfully arbitrary.

PR: 30054
Submitted by: Joseph Mallett <jmallett@xMach.org>
MFC after: 8 days


82528 29-Aug-2001 mike

o Fix some checks on snprintf(3) to prevent miscalculations.
o This fixes a memory leak that can occur on some URL's.

Pointy hat to: brian


82187 23-Aug-2001 brian

Fix my previous snprintf() patches (which were largely no-ops).

Mostly submitted by: bde


82055 21-Aug-2001 brian

Display a better error message when snprintf() returns < 0

Pointed out by: bde


82054 21-Aug-2001 brian

Handle overflows from snprintf(), not just returns of < 0

Pointed out by: bde


81979 20-Aug-2001 brian

Handle snprintf() returning -1.

MFC after: 2 weeks


81586 13-Aug-2001 ru

Removed duplicate VCS ID tags, as per style(9).


81449 10-Aug-2001 ru

mdoc(7) police: protect trailing full stops of abbreviations
with a trailing zero-width space: `e.g.\&'.


81155 05-Aug-2001 jon

Fix using /usr/bin/ftp as a slave process on the end of a pipe by calling
fflush(stdout). This is one ancient PR...

PR: bin/1589
Submitted by: imp


79980 19-Jul-2001 obrien

Portability configuation for LukeM's ftp client.


79755 15-Jul-2001 dd

Remove whitespace at EOL.


79535 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


78598 22-Jun-2001 dcs

Correct small typo on debug message.

PR: bin/28337
Submitted by: Koga Youichirou <y-koga@jp.freebsd.org>
MFC after: 1 week


75178 04-Apr-2001 bde

Fixed a null pointer bug in rev.1.10. Rev.1.10 was supposed to to
move the "for safety" zeroing of unused members of timebuf to a better
place. It actually moved the zeroing to a worse place and didn't add
necessary braces.

Fixed a nearby older bug. timebuf.tm_gmtoff was sometimes used even
when timebuf was invalid. Even when it is zeroed, a failing mktime()
might set it to nonzero.

PR: 25243


70197 19-Dec-2000 ru

Prepare for mdoc(7)NG.


68963 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


66907 10-Oct-2000 wollman

Don't depend on <sys/stat.h> bogusly including <sys/time.h> (and thereby
<time.h>).


66350 25-Sep-2000 ru

Do not call freeaddrinfo(res0) twice.

PR: bin/21476


65427 04-Sep-2000 imp

optarg and optind are declared in unistd.h.
h_error is declared in netdb.h


63035 12-Jul-2000 ben

"ls" is note the same as "nlist", but it is the same as "dir". Correct
this, and add a bit to the descriptions of "dir" and "nlist" to emphasize
the difference.

PR: 15408
Submitted by: Joe Smith <inwap@best.com>


62035 24-Jun-2000 ru

- Reflect `gateport' variable type change.
- Make it compile with -Wall.

PR: 18619
Submitted by: David Malone <dwmalone@maths.tcd.ie>
Reviewed by: ru


62009 23-Jun-2000 ru

Get rid of segfault in a `site %s' case.

Submitted by: Max Khon <fjoe@iclub.nsu.ru>


61870 20-Jun-2000 se

Fix obvious cut-n-paste error.

Submitted by: Thomas Ludwig <tludwig@urbanet.ch>


61673 14-Jun-2000 ume

Make sure to use native IPv4 addrerss even if getaddrinfo()
returns IPv4 mapped IPv6 address. FTP is nervous about address
family.
Submitted by itojun and slightly modified to fit our ftp(1).


61592 12-Jun-2000 ume

Mention about -4 and -6 options.


60920 25-May-2000 ume

Don't pass scope-id to EPRT command.

Reviewed by: sumikawa


60805 22-May-2000 ume

Replace isurl() with isipv6addr().

Reported by: Koji Kondo <koji@jp.above.net>
Obtained from: NetBSD


60620 16-May-2000 cpiazza

Remove addition of -g to CFLAGS


57888 10-Mar-2000 sheldonh

Fix whitepace in the arguments of two Xr macros.


57797 07-Mar-2000 nik

ftp(1)'s default pager is "more", not "less", as documented.

PR: docs/17099
Submitted by: Udo Erdelhoff <ue@nathan.ruhr.de>


57561 28-Feb-2000 shin

Previous fix was incomplete and has problem in reverse lookup failed dest,
so fix it.

Approved by: jkh

Submitted by: Ian West <ian@niw.com.au>


57438 24-Feb-2000 shin

Correctly print out "Connected to" hostname.
Temporal buffer was used for the hostname and freed before actually used.

Specified by: ru
Approved by: jkh


57377 21-Feb-2000 ache

Fix several problems with EPSV (verbosity, one-per-session, missing place)

Approved by: jkh


57341 19-Feb-2000 shin

Removed bogus line.

Specified by: ache
Approved by: jkh


57312 18-Feb-2000 shin

Don't try EPSV once it failed.

Specified by: Andrey A. Chernov" <ache@nagual.pp.ru>
Approved by: jkh


57232 15-Feb-2000 shin

Add -4 and -6 options.

Current getaddrinfo() implemetation has a problem of too much resolving
waiting time on INET6 enabled systems.
-4 and -6 options can limit name resolving address family and is a possible
workaround for the problem.

Approved by: jkh


57167 12-Feb-2000 shin

Add more dual stack consideration.

-Should retry as much as possible when dest addr and
source addr(specified with -s option) address family
missmatch happend

Approved by: jkh


57166 12-Feb-2000 shin

Fix parsing problems.

-"ftp hostname:/path" was not working.
- IPv6 raw addr specification was not well supported, such as,
"ftp http://\[1:2:3:4:5:6:7:8:\]/index.html"

Approved by: jkh


57165 12-Feb-2000 shin

Fix several bogus bugs

-Some address resolving related structures were not freed after use.
-Some error messages were not printed out correctly.

Approved by: jkh


57067 09-Feb-2000 shin

Let ftp command use only PORT(no EPRT) for IPv4 destination.
Because if ftpd is invoked with -R option, and EPRT is used via firewal
or NAT which don't understand EPRT, then the data connection from ftpd
to ftp client will fail.

Reported By: ume@mahoroba.org
Approved by: jkh


56668 27-Jan-2000 shin

another tcp apps IPv6 updates.(should be make world safe)
ftp, telnet, ftpd, faithd
also telnet related sync with crypto, secure, kerberosIV

Obtained from: KAME project


56326 20-Jan-2000 sheldonh

Revert the change from memset() to bzero(), since bzero() is simply
a special case of memset and we already initialize all those
members of the struct tm which are required by mktime().

The memset() is only necessary for style conformity with the rest
of the file. :-)

Scenic route tour by: bde


56256 18-Jan-2000 sheldonh

Correctly parse broken MDTM responses from servers which format
tm_year with "19%02d".

PR: 15981
Reported by: klh@netcom.com (Ken Harrenstien)
Reviewed by: bde


51189 12-Sep-1999 ache

Remove all \n from __COPYRIGHT(...) string - assembler can't parse them
in .ident and produce warning


50477 28-Aug-1999 peter

$Id$ -> $FreeBSD$


48566 04-Jul-1999 billf

Clean up some ambiguous nested if/elses.


48517 03-Jul-1999 des

Reverse the FTP_PASSIVE_MODE check, so it checks for "is not NO" rather
than "is YES".


48397 01-Jul-1999 ru

Document that FTP_PASSIVE_MODE should be explicitly
set to `YES' for passive mode to be used by default.
Just setting FTP_PASSIVE_MODE is not sufficient, as
it was before.

Noted by: eivind
Reviewed by: des


48373 30-Jun-1999 kris

retreived -> retrieved

Obtained from: OpenBSD


48216 25-Jun-1999 ru

- add "-s src_addr" option to allow setting of the source IP address;
- fix two minor bugs;
- slightly cleanup manpage.


47820 07-Jun-1999 des

Separate the pftp and FTP_PASSIVE_MODE tests so gate mode works again.

PR: bin/12070
Submitted by: Dominic Mitchell <Dom.Mitchell@palmerharvey.co.uk>

Specifically check that FTP_PASSIVE_MODE is set to YES, rather than
just checking if it is defined.

Discussed on: freebsd-current


41621 09-Dec-1998 eivind

Better error checking.


37876 26-Jul-1998 imp

fd_set is documented to be a typedef, not a struct. Conform more
closely to the documented interface.

Inspired-by: similar changes in OpenBSD


37747 19-Jul-1998 jmz

'remaining' must be declared off_t instead of int to avoid FPE when the size of
the file to transfer is very large (577985293894855484 bytes in the case I
encountered, but this was a buggy ftp server :-))


36792 09-Jun-1998 imp

Don't assume that hp->h_lenght == 4. Be conservative in its use.
Submitted by: J. Assange a long time ago.


33953 01-Mar-1998 steve

Fix a few minor typos and style nits.

PR: 5883
Submitted by: hnokubi@yyy.or.jp


33345 14-Feb-1998 steve

Cleanup code so that long lines to be quoted don't get truncated.

PR: 5679
Reviewed by: Bruce Evans <bde@zeta.org.au>


33050 03-Feb-1998 pst

Don't print garbage when user enters EOF at name prompt.
PR: 5565
Submitted by: Jens Schweikhardt


32368 09-Jan-1998 msmith

Revert to previous behaviour, only generate NLST for explicit "nlist"
command.
Submitted by: wollman


31769 16-Dec-1997 ache

One more ctype cast


31768 16-Dec-1997 ache

Add more (unsigned char) casts to ctype macros


31767 16-Dec-1997 ache

Add (unsigned char) cast to ctype macro


31706 13-Dec-1997 pst

Sync with NetBSD v1.3.

Keep I8N1 and quarantine port code. Replace our security fix with NetBSD's
(their idea was better).


31637 08-Dec-1997 roberto

Mention pftp as an alternative command to enable passive mode.


31299 19-Nov-1997 guido

Style fix.
Complaint by: Bruce


31202 17-Nov-1997 guido

Make sure you do not get unexpected surprises whena remote file starts with '|'.
Reviewed by: Joerg Wunsch


30113 05-Oct-1997 jkh

Changes to support full make parallelism (-j<n>) in the world
target.
Reviewed by: <many different folks>
Submitted by: Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>


29124 05-Sep-1997 nate

- Changed default PAGER from 'less' to 'more', since we don't have less
in the base system.

PR: bin/4471
Submitted by: Dmitry Khrustalev <dima@xyzzy.machaon.ru>


26980 27-Jun-1997 ache

Replace hand-made tolower conversions with real tolower from ctype


26979 27-Jun-1997 ache

Protect isspace by isascii to not count high spaces


26978 27-Jun-1997 ache

Activate collate to sort local files properly for completion


26977 27-Jun-1997 ache

Localize it (ctype)
8bit ctype clean fixes
(I can't input 8bit chars otherwise in this new ftp, it beeps)


26931 25-Jun-1997 msmith

Import substantial improvements to ftp(1) from NetBSD, largely the
work of Luke Mewburn.

This includes, but is not limited to :

- commandline editing and history.
- local and remote filename completion.
- a new progress display.
- the ability to access files using either the ftp or http protocols,
and use http proxies for ftp transfers.

The FreeeBSD "restricted ports" functionality was preserved.

Obtained from: NetBSD


26544 10-Jun-1997 dg

Meg -> Mbytes

PR: 3829
Submitted by: Josh Gilliam <josh@quick.net>


24360 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


24185 24-Mar-1997 imp

Buffer overflow from Keith Bostic.
Obtained from: BSDi by way of Keith Bostic


20598 17-Dec-1996 imp

Fix problem in ftp and case mapping mode where the converted string wasn't
terminated properly. Fix is from the PR and works for the test cases I
threw at it. Should be safe and desirable for back porting to 2.2 or
earlier if there are people still comitting to -stable.

Submitted by: Marc Slemko <marcs@znep.com>
Closes PR: 1864


19332 02-Nov-1996 jkh

Apply a long-forgotten change to make FTP_PASSIVE_MODE just that
much more universal (in FreeBSD, anyway) in taking some of the pain
out of firewalls.


18376 19-Sep-1996 phk

Make "ftp" a synonym for "open"


17792 23-Aug-1996 phk

Fix a couple of file-descriptor leaks.


15995 30-May-1996 pst

1. Remove SOCKS support (unneded with SOCKS v5 port)
2. Update quarantine port support to use new kernel mechanism.


15913 26-May-1996 scrappy

Changed printf for reporting transfer stats from using %.2g to %.2f to
get rid of "scientific notation" reporting (PR#bin/329)

Added a switch so that if bytes/sec > 1Meg/sec, report in Meg/sec instead
of Kbytes/sec


15358 23-Apr-1996 pst

Add support for socks


13744 30-Jan-1996 mpp

Fix a bunch of spelling errors in a bunch of man pages.


9933 05-Aug-1995 pst

Use data ports in the range 40000..44999 by default to enhance FTP usability
in a firewall environment. Original idea by Mark Tracy (?).

Reviewed by: wollman
Submitted by: pst


8874 30-May-1995 rgrimes

Remove trailing whitespace.


7948 20-Apr-1995 phk

Use port 21 as default if getservbyname fails to find it for us. This let
us remove some crud from the install-procedure.


6493 16-Feb-1995 bde

Fix checking of directory access for "/foo". The parent directory is
"/", not "".


3209 29-Sep-1994 pst

Add -p flag and pftp alias for passive ftp


2846 18-Sep-1994 swallace

Declare fuction setpassive in file cmds.c void and update corresponding
prototype declaration in extern.h.


2843 18-Sep-1994 dg

Kludge to workaround ftp coredumping when password is specified before
login in .netrc.

Submitted by: John Kohl


2805 15-Sep-1994 pst

Add support for passive mode FTP (default off) to base FTP client to support
users behind packet filtering firewalls.
Obtained from: David Carrel <carrel@cisco.com>


2427 31-Aug-1994 dg

Fixed stupid bug which prevented any command line options from being
understood.

Submitted by: Uwe Arndt (arndt@mailhost.uni-koblenz.de)


1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.