bde
3750cde6a8
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
e6cfc0711d
Prepare for mdoc(7)NG.
2000-12-19 16:00:12 +00:00
ru
0d1334ca0c
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 19:21:22 +00:00
wollman
c5c43ce91f
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
061b585fd0
Do not call freeaddrinfo(res0) twice.
...
PR: bin/21476
2000-09-25 11:38:28 +00:00
imp
180527062b
optarg and optind are declared in unistd.h.
...
h_error is declared in netdb.h
2000-09-04 05:59:25 +00:00
ben
3fba8415bf
"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
f86fac3085
- 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
16efc72e25
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
2e88041b72
Fix obvious cut-n-paste error.
...
Submitted by: Thomas Ludwig <tludwig@urbanet.ch>
2000-06-20 15:36:38 +00:00
ume
345437204c
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
4310f54cc9
Mention about -4 and -6 options.
2000-06-12 18:30:16 +00:00
ume
80af27a32a
Don't pass scope-id to EPRT command.
...
Reviewed by: sumikawa
2000-05-25 15:27:31 +00:00
ume
a9b64c96d9
Replace isurl() with isipv6addr().
...
Reported by: Koji Kondo <koji@jp.above.net>
Obtained from: NetBSD
2000-05-22 17:18:38 +00:00
cpiazza
7dfe317859
Remove addition of -g to CFLAGS
2000-05-16 04:23:54 +00:00
sheldonh
1387c77310
Fix whitepace in the arguments of two Xr macros.
2000-03-10 14:46:30 +00:00
nik
6bb8bef443
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
0f87228bd0
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
d693ba6b01
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
92446000b5
Fix several problems with EPSV (verbosity, one-per-session, missing place)
...
Approved by: jkh
2000-02-21 18:18:41 +00:00
shin
2c906dc972
Removed bogus line.
...
Specified by: ache
Approved by: jkh
2000-02-19 16:13:03 +00:00
shin
0dc6c76d54
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
c83f0a97bd
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
ce3ac581a3
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
0a2a73d550
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
shin
4b6c4ae8e8
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
shin
49c2b4c16d
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
shin
ce15efb7c0
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
sheldonh
319dab65f1
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
sheldonh
6623367f2d
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
ache
b50a7124e7
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
3b842d34e8
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
billf
4822432874
Clean up some ambiguous nested if/elses.
1999-07-04 17:26:16 +00:00
des
1e1f8ed63c
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
ru
0624def54d
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
ed6a966fc1
retreived -> retrieved
...
Obtained from: OpenBSD
1999-06-30 12:53:06 +00:00
ru
d321f9c4e4
- 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
des
53320672a0
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
0e52448bcc
Better error checking.
1998-12-09 20:49:20 +00:00
imp
573de313c0
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
jmz
769444bdb4
'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
imp
8c96be00ef
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
94eab23215
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
70962efd65
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
pst
4b6990082a
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
msmith
66b7c3e2e0
Revert to previous behaviour, only generate NLST for explicit "nlist"
...
command.
Submitted by: wollman
1998-01-09 13:45:11 +00:00
ache
1d90974832
One more ctype cast
1997-12-16 08:58:15 +00:00
ache
57d8708b90
Add more (unsigned char) casts to ctype macros
1997-12-16 08:22:37 +00:00
ache
126c5b1358
Add (unsigned char) cast to ctype macro
1997-12-16 08:17:26 +00:00
pst
5ff5a36e72
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