summaryrefslogtreecommitdiffstats
path: root/usr.bin/ftp
Commit message (Collapse)AuthorAgeFilesLines
* strtol -> strtoll (for off_t file size)ache2001-09-011-1/+1
|
* 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.
* Revert the previous delta and apply a better fix which correctsmike2001-08-301-9/+5
| | | | | | a check on the final snprintf and reduces duplicated code. Submitted by: brian
* Remove whitespace at end of line I happened to find during my last edit.alex2001-08-301-2/+2
|
* Add support for proper URI encoding, using strvisx(3)'s VIS_HTTPSTYLE.alex2001-08-301-3/+10
| | | | | Requests through a proxy are still broken for URIs that contain blanks, since this required a bigger rewrite of the whole function.
* Add support for HTTP/1.1 name-based virtual hosts. Also, usemike2001-08-301-7/+12
| | | | | | | | | | 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
* o Fix some checks on snprintf(3) to prevent miscalculations.mike2001-08-291-4/+8
| | | | | | o This fixes a memory leak that can occur on some URL's. Pointy hat to: brian
* Fix my previous snprintf() patches (which were largely no-ops).brian2001-08-232-9/+11
| | | | Mostly submitted by: bde
* Display a better error message when snprintf() returns < 0brian2001-08-211-1/+5
| | | | Pointed out by: bde
* Handle overflows from snprintf(), not just returns of < 0brian2001-08-211-5/+5
| | | | Pointed out by: bde
* Handle snprintf() returning -1.brian2001-08-202-13/+27
| | | | MFC after: 2 weeks
* Removed duplicate VCS ID tags, as per style(9).ru2001-08-138-8/+0
|
* mdoc(7) police: protect trailing full stops of abbreviationsru2001-08-101-2/+2
| | | | with a trailing zero-width space: `e.g.\&'.
* Fix using /usr/bin/ftp as a slave process on the end of a pipe by callingjon2001-08-052-3/+3
| | | | | | | fflush(stdout). This is one ancient PR... PR: bin/1589 Submitted by: imp
* Portability configuation for LukeM's ftp client.obrien2001-07-191-0/+270
|
* Remove whitespace at EOL.dd2001-07-151-8/+8
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Correct small typo on debug message.dcs2001-06-221-1/+1
| | | | | | PR: bin/28337 Submitted by: Koga Youichirou <y-koga@jp.freebsd.org> MFC after: 1 week
* Fixed a null pointer bug in rev.1.10. Rev.1.10 was supposed to tobde2001-04-041-5/+7
| | | | | | | | | | | | 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
* Prepare for mdoc(7)NG.ru2000-12-191-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-7/+7
|
* Don't depend on <sys/stat.h> bogusly including <sys/time.h> (and therebywollman2000-10-101-0/+1
| | | | <time.h>).
* Do not call freeaddrinfo(res0) twice.ru2000-09-251-0/+1
| | | | PR: bin/21476
* optarg and optind are declared in unistd.h.imp2000-09-041-2/+0
| | | | h_error is declared in netdb.h
* "ls" is note the same as "nlist", but it is the same as "dir". Correctben2000-07-121-18/+30
| | | | | | | | 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>
* - Reflect `gateport' variable type change.ru2000-06-245-12/+16
| | | | | | | | - Make it compile with -Wall. PR: 18619 Submitted by: David Malone <dwmalone@maths.tcd.ie> Reviewed by: ru
* Get rid of segfault in a `site %s' case.ru2000-06-231-1/+1
| | | | Submitted by: Max Khon <fjoe@iclub.nsu.ru>
* Fix obvious cut-n-paste error.se2000-06-201-1/+1
| | | | Submitted by: Thomas Ludwig <tludwig@urbanet.ch>
* Make sure to use native IPv4 addrerss even if getaddrinfo()ume2000-06-143-0/+37
| | | | | | returns IPv4 mapped IPv6 address. FTP is nervous about address family. Submitted by itojun and slightly modified to fit our ftp(1).
* Mention about -4 and -6 options.ume2000-06-121-1/+9
|
* Don't pass scope-id to EPRT command.ume2000-05-251-1/+1
| | | | Reviewed by: sumikawa
* Replace isurl() with isipv6addr().ume2000-05-223-1/+32
| | | | | Reported by: Koji Kondo <koji@jp.above.net> Obtained from: NetBSD
* Remove addition of -g to CFLAGScpiazza2000-05-161-1/+1
|
* Fix whitepace in the arguments of two Xr macros.sheldonh2000-03-101-2/+2
|
* ftp(1)'s default pager is "more", not "less", as documented.nik2000-03-071-1/+1
| | | | | PR: docs/17099 Submitted by: Udo Erdelhoff <ue@nathan.ruhr.de>
* 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-213-6/+14
| | | | 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-154-5/+16
| | | | | | | | | 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-124-16/+71
| | | | | | | | -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-122-3/+31
| | | | | | | | -"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-123-5/+10
| | | | | | | -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-278-182/+463
| | | | | | | ftp, telnet, ftpd, faithd also telnet related sync with crypto, secure, kerberosIV Obtained from: KAME project
* Revert the change from memset() to bzero(), since bzero() is simplysheldonh2000-01-201-1/+1
| | | | | | | | | | 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
* Correctly parse broken MDTM responses from servers which formatsheldonh2000-01-181-16/+36
| | | | | | | | tm_year with "19%02d". PR: 15981 Reported by: klh@netcom.com (Ken Harrenstien) Reviewed by: bde
* Remove all \n from __COPYRIGHT(...) string - assembler can't parse themache1999-09-121-2/+2
| | | | in .ident and produce warning
* $Id$ -> $FreeBSD$peter1999-08-2814-22/+22
|
OpenPOWER on IntegriCloud