Commit Graph

106 Commits

Author SHA1 Message Date
ru
4c72afa60b Fixed style of DPADD and LDADD assignments as per style.Makefile(5). 2004-02-05 22:44:25 +00:00
mikeh
eaed3b8bd6 Restore INET6 option from config.h.
Submitted by:	David Malone <dwmalone@maths.tcd.ie>
2003-06-25 15:53:25 +00:00
mikeh
77254cb7ba Update for latest lukemftp import. 2003-06-16 02:37:42 +00:00
mikeh
38b8811bed Update for lukemftp-1.6-beta2. 2002-06-15 09:42:17 +00:00
mikeh
079e3a9e37 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.
2001-12-13 23:46:44 +00:00
iedowse
a1035f35ba Make completion work with filenames containing spaces.
PR:		bin/23526
Submitted by:	root@yoda.fwe.pi.musin.de
MFC after:	1 week
2001-11-18 17:49:09 +00:00
obrien
dd0f173528 Adjust to the libedit enhancements some functions now take more parameters.
Partially submitted by:	kris
2001-10-01 08:46:45 +00:00
ache
b0e1757ac0 strtol -> strtoll (for off_t file size) 2001-09-01 23:36:40 +00:00
ache
c726ed276c 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.
2001-09-01 23:01:29 +00:00
mike
d52466b5d5 Revert the previous delta and apply a better fix which corrects
a check on the final snprintf and reduces duplicated code.

Submitted by:	brian
2001-08-30 17:13:15 +00:00
alex
2daa48cdd0 Remove whitespace at end of line I happened to find during my last edit. 2001-08-30 02:32:00 +00:00
alex
90df59c89e 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.
2001-08-30 02:30:33 +00:00
mike
cccaa2a412 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
2001-08-30 00:57:35 +00:00
mike
7a39a42ab8 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
2001-08-29 23:51:14 +00:00
brian
254bd6bd61 Fix my previous snprintf() patches (which were largely no-ops).
Mostly submitted by: bde
2001-08-23 12:53:15 +00:00
brian
9b6f0bc021 Display a better error message when snprintf() returns < 0
Pointed out by: bde
2001-08-21 11:39:45 +00:00
brian
33fb1cc023 Handle overflows from snprintf(), not just returns of < 0
Pointed out by: bde
2001-08-21 11:39:32 +00:00
brian
31ae506fa1 Handle snprintf() returning -1.
MFC after:	2 weeks
2001-08-20 14:46:40 +00:00
ru
325db7b385 Removed duplicate VCS ID tags, as per style(9). 2001-08-13 14:06:34 +00:00
ru
9174553bc8 mdoc(7) police: protect trailing full stops of abbreviations
with a trailing zero-width space: `e.g.\&'.
2001-08-10 13:45:36 +00:00
jon
ae427e14bb 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
2001-08-05 08:39:58 +00:00
obrien
5bbaa34b71 Portability configuation for LukeM's ftp client. 2001-07-19 17:45:52 +00:00
dd
7d1013753f Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
ru
ecbb298b07 mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 14:16:33 +00:00
dcs
8c673dc4c5 Correct small typo on debug message.
PR:		bin/28337
Submitted by:	Koga Youichirou <y-koga@jp.freebsd.org>
MFC after:	1 week
2001-06-22 12:54:55 +00:00
bde
f31810bc08 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
2001-04-04 15:09:54 +00:00
ru
655e7db87e Prepare for mdoc(7)NG. 2000-12-19 16:00:12 +00:00
ru
0957874304 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 19:21:22 +00:00
wollman
5e8b712997 Don't depend on <sys/stat.h> bogusly including <sys/time.h> (and thereby
<time.h>).
2000-10-10 01:50:26 +00:00
ru
5a11dbce06 Do not call freeaddrinfo(res0) twice.
PR:		bin/21476
2000-09-25 11:38:28 +00:00
imp
0d15e0b04e optarg and optind are declared in unistd.h.
h_error is declared in netdb.h
2000-09-04 05:59:25 +00:00
ben
e9f0198f4b "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>
2000-07-12 19:00:50 +00:00
ru
6ff8f6ff7c - Reflect `gateport' variable type change.
- Make it compile with -Wall.

PR:		18619
Submitted by:	David Malone <dwmalone@maths.tcd.ie>
Reviewed by:	ru
2000-06-24 15:34:31 +00:00
ru
710c33e780 Get rid of segfault in a `site %s' case.
Submitted by:	Max Khon <fjoe@iclub.nsu.ru>
2000-06-23 14:39:23 +00:00
se
c2cfcc4d19 Fix obvious cut-n-paste error.
Submitted by:	Thomas Ludwig <tludwig@urbanet.ch>
2000-06-20 15:36:38 +00:00
ume
baaa723d4a 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).
2000-06-14 15:26:58 +00:00
ume
6c334889c8 Mention about -4 and -6 options. 2000-06-12 18:30:16 +00:00
ume
41d30906dc Don't pass scope-id to EPRT command.
Reviewed by:	sumikawa
2000-05-25 15:27:31 +00:00
ume
ac6f9db007 Replace isurl() with isipv6addr().
Reported by:	Koji Kondo <koji@jp.above.net>
Obtained from:	NetBSD
2000-05-22 17:18:38 +00:00
cpiazza
a4b34dc3fd Remove addition of -g to CFLAGS 2000-05-16 04:23:54 +00:00
sheldonh
47c2a6415e Fix whitepace in the arguments of two Xr macros. 2000-03-10 14:46:30 +00:00
nik
fd5b578306 ftp(1)'s default pager is "more", not "less", as documented.
PR:             docs/17099
Submitted by:   Udo Erdelhoff <ue@nathan.ruhr.de>
2000-03-07 14:03:16 +00:00
shin
d0c832b25f 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>
2000-02-28 18:37:07 +00:00
shin
bb6df383d0 Correctly print out "Connected to" hostname.
Temporal buffer was used for the hostname and freed before actually used.

Specified by: ru
Approved by: jkh
2000-02-24 19:01:38 +00:00
ache
85e922cbc5 Fix several problems with EPSV (verbosity, one-per-session, missing place)
Approved by:	jkh
2000-02-21 18:18:41 +00:00
shin
58ca0b4427 Removed bogus line.
Specified by: ache
Approved by: jkh
2000-02-19 16:13:03 +00:00
shin
be2e48787d Don't try EPSV once it failed.
Specified by: Andrey A. Chernov" <ache@nagual.pp.ru>
Approved by: jkh
2000-02-18 07:02:48 +00:00
shin
b2bfbd50c8 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
2000-02-15 15:11:40 +00:00
shin
599469f8ef 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
2000-02-12 17:59:06 +00:00
shin
ae49c3e87a 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
2000-02-12 15:16:59 +00:00