Garrett Wollman
eb2fc78027
Don't depend on <sys/stat.h> bogusly including <sys/time.h> (and thereby
...
<time.h>).
2000-10-10 01:50:26 +00:00
Ruslan Ermilov
11a0f7fe07
Do not call freeaddrinfo(res0) twice.
...
PR: bin/21476
2000-09-25 11:38:28 +00:00
Warner Losh
b07b8563ff
optarg and optind are declared in unistd.h.
...
h_error is declared in netdb.h
2000-09-04 05:59:25 +00:00
Ben Smithurst
f2d93b7d1d
"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
Ruslan Ermilov
00eea183e1
- 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
Ruslan Ermilov
a02450722b
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
Stefan Eßer
8834b38862
Fix obvious cut-n-paste error.
...
Submitted by: Thomas Ludwig <tludwig@urbanet.ch>
2000-06-20 15:36:38 +00:00
Hajimu UMEMOTO
bc67101b31
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
Hajimu UMEMOTO
6c62dafbff
Mention about -4 and -6 options.
2000-06-12 18:30:16 +00:00
Hajimu UMEMOTO
9ba97db25b
Don't pass scope-id to EPRT command.
...
Reviewed by: sumikawa
2000-05-25 15:27:31 +00:00
Hajimu UMEMOTO
07da07565e
Replace isurl() with isipv6addr().
...
Reported by: Koji Kondo <koji@jp.above.net>
Obtained from: NetBSD
2000-05-22 17:18:38 +00:00
Chris Piazza
3797b581a9
Remove addition of -g to CFLAGS
2000-05-16 04:23:54 +00:00
Sheldon Hearn
4b25ed423f
Fix whitepace in the arguments of two Xr macros.
2000-03-10 14:46:30 +00:00
Nik Clayton
befd85d633
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
Yoshinobu Inoue
3fdf7be445
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
Yoshinobu Inoue
88a845c11d
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
Andrey A. Chernov
b2ca2dccc4
Fix several problems with EPSV (verbosity, one-per-session, missing place)
...
Approved by: jkh
2000-02-21 18:18:41 +00:00
Yoshinobu Inoue
7f14aa9b8a
Removed bogus line.
...
Specified by: ache
Approved by: jkh
2000-02-19 16:13:03 +00:00
Yoshinobu Inoue
aeb2954d05
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
Yoshinobu Inoue
1132b408c5
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
Yoshinobu Inoue
e7e960abeb
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
Yoshinobu Inoue
319c8e321c
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
Yoshinobu Inoue
2bd54ee847
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
2000-02-12 15:03:05 +00:00
Yoshinobu Inoue
d98d74772f
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
2000-02-09 00:27:40 +00:00
Yoshinobu Inoue
4dd8b5ab79
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
2000-01-27 09:28:38 +00:00
Sheldon Hearn
248368f60a
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
2000-01-20 09:41:31 +00:00
Sheldon Hearn
64826fd0b3
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
2000-01-18 21:27:23 +00:00
Andrey A. Chernov
da600884bd
Remove all \n from __COPYRIGHT(...) string - assembler can't parse them
...
in .ident and produce warning
1999-09-12 00:23:44 +00:00
Peter Wemm
c3aac50f28
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
Bill Fumerola
9ef5c48bef
Clean up some ambiguous nested if/elses.
1999-07-04 17:26:16 +00:00
Dag-Erling Smørgrav
19364f02eb
Reverse the FTP_PASSIVE_MODE check, so it checks for "is not NO" rather
...
than "is YES".
1999-07-03 10:10:50 +00:00
Ruslan Ermilov
69d00ab7ca
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
1999-07-01 14:32:07 +00:00
Kris Kennaway
624a0c8204
retreived -> retrieved
...
Obtained from: OpenBSD
1999-06-30 12:53:06 +00:00
Ruslan Ermilov
f62092b8c3
- add "-s src_addr" option to allow setting of the source IP address;
...
- fix two minor bugs;
- slightly cleanup manpage.
1999-06-25 14:11:16 +00:00
Dag-Erling Smørgrav
ff7b59cd9e
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
1999-06-07 16:35:15 +00:00
Eivind Eklund
65d303887c
Better error checking.
1998-12-09 20:49:20 +00:00
Warner Losh
d352b6c59e
fd_set is documented to be a typedef, not a struct. Conform more
...
closely to the documented interface.
Inspired-by: similar changes in OpenBSD
1998-07-26 18:49:36 +00:00
Jean-Marc Zucconi
d90d7b04ab
'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 :-))
1998-07-19 00:01:24 +00:00
Warner Losh
a716ad6693
Don't assume that hp->h_lenght == 4. Be conservative in its use.
...
Submitted by: J. Assange a long time ago.
1998-06-09 04:31:02 +00:00
Steve Price
0ad8c69ad4
Fix a few minor typos and style nits.
...
PR: 5883
Submitted by: hnokubi@yyy.or.jp
1998-03-01 18:58:03 +00:00
Steve Price
3eb7ce85b1
Cleanup code so that long lines to be quoted don't get truncated.
...
PR: 5679
Reviewed by: Bruce Evans <bde@zeta.org.au>
1998-02-14 15:38:29 +00:00
Paul Traina
5099706acd
Don't print garbage when user enters EOF at name prompt.
...
PR: 5565
Submitted by: Jens Schweikhardt
1998-02-03 20:53:25 +00:00
Mike Smith
51151497c8
Revert to previous behaviour, only generate NLST for explicit "nlist"
...
command.
Submitted by: wollman
1998-01-09 13:45:11 +00:00
Andrey A. Chernov
ff07b87482
One more ctype cast
1997-12-16 08:58:15 +00:00
Andrey A. Chernov
8e6f104bf2
Add more (unsigned char) casts to ctype macros
1997-12-16 08:22:37 +00:00
Andrey A. Chernov
244bf2805f
Add (unsigned char) cast to ctype macro
1997-12-16 08:17:26 +00:00
Paul Traina
b62081305a
Sync with NetBSD v1.3.
...
Keep I8N1 and quarantine port code. Replace our security fix with NetBSD's
(their idea was better).
1997-12-13 20:38:21 +00:00
Ollivier Robert
af65141672
Mention pftp as an alternative command to enable passive mode.
1997-12-08 22:09:44 +00:00
Guido van Rooij
87eeff2e41
Style fix.
...
Complaint by: Bruce
1997-11-19 18:57:49 +00:00
Guido van Rooij
2d404628d8
Make sure you do not get unexpected surprises whena remote file starts with '|'.
...
Reviewed by: Joerg Wunsch
1997-11-17 19:29:16 +00:00
Jordan K. Hubbard
97fe7f477f
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>
1997-10-05 09:40:24 +00:00
Nate Williams
b1bb7c6f43
- 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>
1997-09-05 04:24:22 +00:00
Andrey A. Chernov
597828870b
Replace hand-made tolower conversions with real tolower from ctype
1997-06-27 10:21:22 +00:00
Andrey A. Chernov
e5fb1920f5
Protect isspace by isascii to not count high spaces
1997-06-27 10:09:50 +00:00
Andrey A. Chernov
f74df00911
Activate collate to sort local files properly for completion
1997-06-27 09:38:07 +00:00
Andrey A. Chernov
943259e2fc
Localize it (ctype)
...
8bit ctype clean fixes
(I can't input 8bit chars otherwise in this new ftp, it beeps)
1997-06-27 09:30:15 +00:00
Mike Smith
5fc864b26d
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
1997-06-25 08:56:46 +00:00
David Greenman
e30478ed6c
Meg -> Mbytes
...
PR: 3829
Submitted by: Josh Gilliam <josh@quick.net>
1997-06-10 12:49:17 +00:00
Warner Losh
1c8af87873
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-29 04:34:07 +00:00
Warner Losh
f85d627937
Buffer overflow from Keith Bostic.
...
Obtained from: BSDi by way of Keith Bostic
1997-03-24 05:51:59 +00:00
Warner Losh
9b50a3ce03
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
1996-12-17 17:59:40 +00:00
Jordan K. Hubbard
a378b701cb
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.
1996-11-02 18:18:38 +00:00
Poul-Henning Kamp
1dc60e2b2e
Make "ftp" a synonym for "open"
1996-09-19 08:16:47 +00:00
Poul-Henning Kamp
b2420a13ab
Fix a couple of file-descriptor leaks.
1996-08-23 09:33:32 +00:00
Paul Traina
ad9b7e5685
1. Remove SOCKS support (unneded with SOCKS v5 port)
...
2. Update quarantine port support to use new kernel mechanism.
1996-05-30 03:08:17 +00:00
Marc G. Fournier
94e99b9ffa
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
1996-05-26 21:12:50 +00:00
Paul Traina
33bb8564be
Add support for socks
1996-04-23 05:18:43 +00:00
Mike Pritchard
4a8d02835c
Fix a bunch of spelling errors in a bunch of man pages.
1996-01-30 13:52:50 +00:00
Paul Traina
4c450ad7a7
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
1995-08-05 19:12:05 +00:00
Rodney W. Grimes
7799f52a32
Remove trailing whitespace.
1995-05-30 06:41:30 +00:00
Poul-Henning Kamp
f6e018497f
Use port 21 as default if getservbyname fails to find it for us. This let
...
us remove some crud from the install-procedure.
1995-04-20 05:38:58 +00:00
Bruce Evans
829b9f6e93
Fix checking of directory access for "/foo". The parent directory is
...
"/", not "".
1995-02-16 11:42:36 +00:00
Paul Traina
1dcd7de0c3
Add -p flag and pftp alias for passive ftp
1994-09-29 20:55:25 +00:00
Steven Wallace
240baf2f68
Declare fuction setpassive in file cmds.c void and update corresponding
...
prototype declaration in extern.h.
1994-09-18 05:45:29 +00:00
David Greenman
63f5112ede
Kludge to workaround ftp coredumping when password is specified before
...
login in .netrc.
Submitted by: John Kohl
1994-09-18 04:09:28 +00:00
Paul Traina
9095be3705
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>
1994-09-15 19:45:43 +00:00
David Greenman
f114b8260c
Fixed stupid bug which prevented any command line options from being
...
understood.
Submitted by: Uwe Arndt (arndt@mailhost.uni-koblenz.de )
1994-08-31 17:20:12 +00:00
Rodney W. Grimes
9b50d90275
BSD 4.4 Lite Usr.bin Sources
1994-05-27 12:33:43 +00:00