summaryrefslogtreecommitdiffstats
path: root/usr.bin/ftp/ftp.c
Commit message (Collapse)AuthorAgeFilesLines
* Connect lukemftp to the build as the default ftp client. Lukemftpmikeh2001-12-131-1965/+0
| | | | | supports most of the previous features of FreeBSD ftp, but has been better maintained and includes new features.
* File positions are off_t nowdays, not long, so:ache2001-09-011-5/+5
| | | | | | | | | | 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.
* Removed duplicate VCS ID tags, as per style(9).ru2001-08-131-1/+0
|
* Don't depend on <sys/stat.h> bogusly including <sys/time.h> (and therebywollman2000-10-101-0/+1
| | | | <time.h>).
* optarg and optind are declared in unistd.h.imp2000-09-041-2/+0
| | | | h_error is declared in netdb.h
* - Reflect `gateport' variable type change.ru2000-06-241-1/+3
| | | | | | | | - Make it compile with -Wall. PR: 18619 Submitted by: David Malone <dwmalone@maths.tcd.ie> Reviewed by: ru
* Make sure to use native IPv4 addrerss even if getaddrinfo()ume2000-06-141-0/+35
| | | | | | returns IPv4 mapped IPv6 address. FTP is nervous about address family. Submitted by itojun and slightly modified to fit our ftp(1).
* Don't pass scope-id to EPRT command.ume2000-05-251-1/+1
| | | | Reviewed by: sumikawa
* Previous fix was incomplete and has problem in reverse lookup failed dest,shin2000-02-281-3/+2
| | | | | | | | so fix it. Approved by: jkh Submitted by: Ian West <ian@niw.com.au>
* Correctly print out "Connected to" hostname.shin2000-02-241-4/+3
| | | | | | | Temporal buffer was used for the hostname and freed before actually used. Specified by: ru Approved by: jkh
* Fix several problems with EPSV (verbosity, one-per-session, missing place)ache2000-02-211-6/+12
| | | | Approved by: jkh
* Removed bogus line.shin2000-02-191-1/+0
| | | | | Specified by: ache Approved by: jkh
* Don't try EPSV once it failed.shin2000-02-181-5/+12
| | | | | Specified by: Andrey A. Chernov" <ache@nagual.pp.ru> Approved by: jkh
* Add -4 and -6 options.shin2000-02-151-1/+1
| | | | | | | | | 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
* Add more dual stack consideration.shin2000-02-121-7/+42
| | | | | | | | -Should retry as much as possible when dest addr and source addr(specified with -s option) address family missmatch happend Approved by: jkh
* Fix parsing problems.shin2000-02-121-2/+11
| | | | | | | | -"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
* Fix several bogus bugsshin2000-02-121-0/+1
| | | | | | | -Some address resolving related structures were not freed after use. -Some error messages were not printed out correctly. Approved by: jkh
* Let ftp command use only PORT(no EPRT) for IPv4 destination.shin2000-02-091-1/+0
| | | | | | | | | 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
* another tcp apps IPv6 updates.(should be make world safe)shin2000-01-271-75/+341
| | | | | | | ftp, telnet, ftpd, faithd also telnet related sync with crypto, secure, kerberosIV Obtained from: KAME project
* $Id$ -> $FreeBSD$peter1999-08-281-2/+2
|
* - add "-s src_addr" option to allow setting of the source IP address;ru1999-06-251-24/+25
| | | | | - fix two minor bugs; - slightly cleanup manpage.
* Better error checking.eivind1998-12-091-3/+4
|
* fd_set is documented to be a typedef, not a struct. Conform moreimp1998-07-261-7/+7
| | | | | | closely to the documented interface. Inspired-by: similar changes in OpenBSD
* Don't assume that hp->h_lenght == 4. Be conservative in its use.imp1998-06-091-8/+9
| | | | Submitted by: J. Assange a long time ago.
* Add more (unsigned char) casts to ctype macrosache1997-12-161-4/+4
|
* Sync with NetBSD v1.3.pst1997-12-131-57/+84
| | | | | Keep I8N1 and quarantine port code. Replace our security fix with NetBSD's (their idea was better).
* Import substantial improvements to ftp(1) from NetBSD, largely themsmith1997-06-251-386/+429
| | | | | | | | | | | | | | | | 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
* Meg -> Mbytesdg1997-06-101-1/+1
| | | | | PR: 3829 Submitted by: Josh Gilliam <josh@quick.net>
* Fix a couple of file-descriptor leaks.phk1996-08-231-0/+3
|
* 1. Remove SOCKS support (unneded with SOCKS v5 port)pst1996-05-301-49/+20
| | | | 2. Update quarantine port support to use new kernel mechanism.
* Changed printf for reporting transfer stats from using %.2g to %.2f toscrappy1996-05-261-2/+6
| | | | | | | 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
* Use data ports in the range 40000..44999 by default to enhance FTP usabilitypst1995-08-051-9/+46
| | | | | | | in a firewall environment. Original idea by Mark Tracy (?). Reviewed by: wollman Submitted by: pst
* Remove trailing whitespace.rgrimes1995-05-301-5/+5
|
* Fix checking of directory access for "/foo". The parent directory isbde1995-02-161-2/+2
| | | | "/", not "".
* Add support for passive mode FTP (default off) to base FTP client to supportpst1994-09-151-0/+52
| | | | | users behind packet filtering firewalls. Obtained from: David Carrel <carrel@cisco.com>
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+1470
OpenPOWER on IntegriCloud