Peter Wemm
7f3dea244c
$Id$ -> $FreeBSD$
1999-08-28 00:22:10 +00:00
Peter Wemm
1713064734
unifdef -DINTERNAL_LS - it's too useful to be off by default. If anyone
...
really dislikes this, we could add a switch to disable it at runtime and
check in popen.c.
1999-08-26 00:45:36 +00:00
Mike Pritchard
a206edcdb7
Update the SYNOPSIS to reflect that the -l option can be specified
...
more than once.
Pointed-out-by: sheldonh
1999-06-28 10:50:47 +00:00
Guy Helmer
e57c110bba
Add missing -A option to SYNOPSIS.
...
PR: docs/10771
1999-05-04 19:42:01 +00:00
Warner Losh
859663719d
More egcs warning fixes:
...
o main returns int not void
o use return 0 at end of main when needed
o use braces to avoid potentially ambiguous else
o don't default to type int (and also remove a useless register
modifier).
Reviewed by: obrien and chuckr
1999-04-25 22:23:38 +00:00
Brian Somers
9e9a43bdec
Ensure that things returned by gethostname() and
...
friends are terminated and allow for a maximum
host name length of MAXHOSTNAMELEN - 1.
Put parenthesis around sizeof args.
Make some variables static.
Fix telnetd -u (broken by my last commit)
Prompted by: bde
1999-04-07 08:27:45 +00:00
Brian Somers
32af26a501
Use realhostname() rather than various combinations of
...
gethostbyaddr() & gethostbyname().
Remove brokeness in ftpd for hosts of MAXHOSTNAMELEN length.
1999-04-06 23:06:00 +00:00
Satoshi Asami
0e510aed5b
Oops, I missed a few more /etc/nologin references yesterday. It appears
...
my check of the tree was incomplete. Sorry guys.
Reported by: Ben Smithurst <ben@scientia.demon.co.uk>
1999-01-12 14:09:23 +00:00
Bill Fumerola
c711c51d19
Update to correctly reflect the default values of
...
net.inet.ip.portrange.hifirst and net.inet.ip.portrange.hilast
PR: docs/6745
Submitted by: Masachika Ishizuka <ishizuka@ish.org>
1998-12-02 22:11:02 +00:00
John Polstra
4700eb95cb
Find "klogin.c" in "src/lib/libpam/modules/pam_kerberosIV" instead
...
of in "src/usr.bin/login". The latter instance is going away. As
soon as ftpd is PAMized, it won't need to use klogin.c at all.
1998-11-21 02:11:16 +00:00
Dag-Erling Smørgrav
e6fa0d4308
Set the user context correctly so that cd ~ does the right thing.
...
PR: bin/7943 bin/8293
Submitted by: Bill Fenner <fenner@parc.xerox.com>
Approved by: jkh
1998-10-13 20:42:01 +00:00
Alexander Langer
29a199dbc5
Added double quotes around CHMOD description to prevent garbled output.
...
PR: 8094
Submitted by: Christoph Weber-Fahr <wefa@callcenter.systemhaus.net>
1998-09-29 22:02:06 +00:00
Joseph Koshy
d59b62e37b
Document the use of lines beginning with a '#' as comment lines.
...
PR: 5676
1998-07-09 11:38:21 +00:00
John Birrell
158a00b20e
signal() returns SIG_ERR on error, not int.
...
time() requires a time_t pointer, not a long.
1998-06-03 11:33:44 +00:00
Steve Price
7edcb9366e
Make ftpd(8) honor its default group setting in the config files.
...
PR: 6682
Submitted by: Max Euston <meuston@jmrodgers.com>
1998-05-25 03:45:35 +00:00
Andrey A. Chernov
23ea9f7e98
Back out "always UTC" fix since some people want visually identical 'ls'
...
output for local users. FTP protocol RFC also says that 'ls' output is
not machine-readable. "always UTC" still possible with TZ= in ftpd
environment by price of having UTC in log files too.
Fix INTERNAL_LS to sense new /etc/localtime after chroot
1998-05-18 00:06:28 +00:00
Andrey A. Chernov
34d1ba5cd5
Return back initial tzset() must be before first chroot
1998-05-16 21:23:33 +00:00
Andrey A. Chernov
f350361770
Return back vfork and use execve with TZ="" environment in vfork case
1998-05-15 16:51:06 +00:00
Andrey A. Chernov
f85f9e5656
Use fork instead of vfork since setenv clobber parent environment
...
Fork already used for INTERNAL_LS in anycase
1998-05-15 16:30:09 +00:00
Andrey A. Chernov
46589cb624
Move TZ="" assignment just before exec to not touch other time stuff
1998-05-15 16:08:52 +00:00
Andrey A. Chernov
2903069462
Do TZ= as first thing, since FTP protocol is unable to tell zone offset in
...
any case.
It makes no difference for anon account (since chroot already makes it GMT),
but if you do mirror with special non-anon login, in old variant
your mirror will be wholy retransmitted twice in the year due to
time zone changes (/etc/localtime plays bad role here)
1998-05-15 15:06:58 +00:00
Bruce Evans
ef87dd8703
Simplified by using new yacc rules and by not generating y.tab.h.
1998-05-04 18:20:18 +00:00
David Greenman
dadb9fb334
Set TCP_NODELAY on the control channel to improve performance a bit.
1998-04-28 03:37:23 +00:00
David Greenman
b81d7e37bb
Fixed a bug where if MAXUSRARGS amount of args were passed in, the argv[]
...
array would end up without the NULL pointer termination, causing the glob
code to glob whatever garbage happend to follow on the stack.
1998-04-27 10:51:26 +00:00
Daniel O'Callaghan
20d2e1ee59
PR: 5812
...
Pointed-in-the-right-driection-by: Mike Smith and Steve Price
Close syslogging before calling ls_main()
1998-02-25 07:10:57 +00:00
Eivind Eklund
f5c57d05c1
Make ftpd log IP-addresses in addition to hostnames.
1998-02-24 08:45:57 +00:00
David E. O'Brien
f97d7807ad
MFS.
1998-02-18 10:53:16 +00:00
Warner Losh
e760ef2c35
Various sprintf -> snprintf fixes.
...
Minor style fix (strcpy(foo,"") -> *foo = '\0')
Obtained from: OpenBSD(?)
1997-12-24 19:13:23 +00:00
Steve Price
59c780cdc1
FTP_INTERNAL_LS -> FTPD_INTERNAL_LS
...
Pointed out by: Jaye Mathisen <mrcpu@cdsnet.net>
1997-12-04 03:58:02 +00:00
Philippe Charnier
e02897fa5b
Cosmetics in man page. Exit(-1) -> exit(1).
1997-11-21 07:38:43 +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
Poul-Henning Kamp
d030d2d2ae
Many places in the code NULL is used in integer context, where
...
plain 0 should be used. This happens to work because we #define
NULL to 0, but is stylistically wrong and can cause problems
for people trying to port bits of code to other environments.
PR: 2752
Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
1997-09-18 14:08:40 +00:00
Thomas Gellekum
986a117274
Hopefully better fix for logwtmp(): rename to a private
...
version ftpd_logwtmp().
1997-09-05 11:44:00 +00:00
Thomas Gellekum
b11f88b09a
logwtmp() prototype is in <libutil.h>.
1997-09-05 11:17:22 +00:00
David Nugent
0512556a48
Make useage of hostname global variable consistent.
...
PR: 4135
Based on submitted patch by: blank@fox.uni-trier.de
1997-07-24 09:26:12 +00:00
Daniel O'Callaghan
3401a71f4e
Tell the chroot()ed user that "access restrictions apply".
1997-05-21 23:24:41 +00:00
David Nugent
5d0bfe39ec
login_getclass() -> login_getpwclass().
1997-05-10 19:02:03 +00:00
David Nugent
ea4e54b942
Adds anon ftp virtual host capability to ftpd, using /etc/ftphosts for
...
definition of a system's virtual hosts.
1997-04-29 12:42:08 +00:00
David Nugent
31fea7b8f2
YAMF2.2: Allow @group entries in /etc/ftpusers & /etc/ftpchroot to deny
...
and allow chroot access to entire groups.
1997-04-27 08:29:21 +00:00
David Nugent
334ab9fdd0
Document internal ls, how to compile it in and what it changes wrt
...
anon ftp and chrooted users.
1997-04-26 12:23:51 +00:00
David Nugent
af85d782fd
Adds optional "internal ls" support for ftpd, by collecting
...
modules from src/bin/ls, and handling exec(_PATH_LS,..) as a
special case, very useful in an environment where many users
are given chroot access. "~/etc/{s}pwd.db" files are still
needed if uid/gid->user/group translation is desired.
To enable this it must be compiled with the make variable
FTP_INTERNAL_LS defined, either in /etc/make.conf or the
environment.
1997-04-26 12:12:10 +00:00
David Nugent
b071c689de
Add basic login.conf (sans authentication) support.
1997-04-23 04:56:39 +00:00
Warner Losh
91477cc4d7
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-28 15:48:21 +00:00
Mike Pritchard
42946c8261
Remove some incorrect text on how passwords are validated.
...
Closes PR# 3050.
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
1997-03-25 03:45:52 +00:00
Peter Wemm
9e522f7a18
Revert $FreeBSD$ to $Id$
1997-02-22 14:22:49 +00:00
Mike Pritchard
90ac6cd46a
#include <string.h> to help silence -Wall.
1997-02-20 23:11:22 +00:00
Guido van Rooij
c65c314e66
Actually allow the -R flag.
1997-02-13 19:24:25 +00:00
David Greenman
ac7636cbfc
Oops, fix white space in last commit.
1997-01-28 07:09:05 +00:00
David Greenman
0b4df2eec2
Fix signal handler race condition.
1997-01-28 07:06:54 +00:00
Alexander Langer
8abdc2eb40
Sweep through the tree fixing mmap() usage:
...
- Use MAP_FAILED instead of the constant -1 to indicate
failure (required by POSIX).
- Removed flag arguments of '0' (required by POSIX).
- Fixed code which expected an error return of 0.
- Fixed code which thought any address with the high bit set
was an error.
- Check for failure where no checks were present.
Discussed with: bde
1997-01-16 21:58:40 +00:00