ghelmer
6c58e4987d
Add missing -A option to SYNOPSIS.
...
PR: docs/10771
1999-05-04 19:42:01 +00:00
imp
945fc2a1a0
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
3794629aa4
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
86a9f98333
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
asami
f3868ac8c6
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
billf
cb5e048b7b
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
jdp
f21429fd93
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
des
3ff517c5c8
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
alex
5bdd606449
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
jkoshy
0fc0040fdc
Document the use of lines beginning with a '#' as comment lines.
...
PR: 5676
1998-07-09 11:38:21 +00:00
jb
3613b8e4e0
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
0440c8d7dd
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
ache
e5618d9c47
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
ache
cbf681e617
Return back initial tzset() must be before first chroot
1998-05-16 21:23:33 +00:00
ache
4f62e1acde
Return back vfork and use execve with TZ="" environment in vfork case
1998-05-15 16:51:06 +00:00
ache
3a9a1a3486
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
ache
04888d021e
Move TZ="" assignment just before exec to not touch other time stuff
1998-05-15 16:08:52 +00:00
ache
4ca333f904
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
bde
7746dc49bf
Simplified by using new yacc rules and by not generating y.tab.h.
1998-05-04 18:20:18 +00:00
dg
18da8f9801
Set TCP_NODELAY on the control channel to improve performance a bit.
1998-04-28 03:37:23 +00:00
dg
5b2c685f2a
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
danny
c7d0f49ada
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
771117d6ae
Make ftpd log IP-addresses in addition to hostnames.
1998-02-24 08:45:57 +00:00
obrien
5999c586e0
MFS.
1998-02-18 10:53:16 +00:00
imp
b14c1dcaab
Various sprintf -> snprintf fixes.
...
Minor style fix (strcpy(foo,"") -> *foo = '\0')
Obtained from: OpenBSD(?)
1997-12-24 19:13:23 +00:00
steve
7d0ed7b367
FTP_INTERNAL_LS -> FTPD_INTERNAL_LS
...
Pointed out by: Jaye Mathisen <mrcpu@cdsnet.net>
1997-12-04 03:58:02 +00:00
charnier
f510cb9462
Cosmetics in man page. Exit(-1) -> exit(1).
1997-11-21 07:38:43 +00:00
jkh
068b44c29a
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
phk
7d1a30911b
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
tg
cbe5b6046b
Hopefully better fix for logwtmp(): rename to a private
...
version ftpd_logwtmp().
1997-09-05 11:44:00 +00:00
tg
03ea6c5f62
logwtmp() prototype is in <libutil.h>.
1997-09-05 11:17:22 +00:00
davidn
20490d1f1c
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
danny
18e6b5eb02
Tell the chroot()ed user that "access restrictions apply".
1997-05-21 23:24:41 +00:00
davidn
5f5e8a9170
login_getclass() -> login_getpwclass().
1997-05-10 19:02:03 +00:00
davidn
89f55d91d3
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
davidn
3a87e49d08
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
davidn
32520b1285
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
davidn
982f7101f4
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
davidn
228be93117
Add basic login.conf (sans authentication) support.
1997-04-23 04:56:39 +00:00
imp
298d1ef2f1
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
mpp
d0c90948ff
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
bd20ff9351
Revert $FreeBSD$ to $Id$
1997-02-22 14:22:49 +00:00
mpp
64251c9780
#include <string.h> to help silence -Wall.
1997-02-20 23:11:22 +00:00
guido
b5c78a62d4
Actually allow the -R flag.
1997-02-13 19:24:25 +00:00
dg
a9588dd99a
Oops, fix white space in last commit.
1997-01-28 07:09:05 +00:00
dg
b8380bb9dd
Fix signal handler race condition.
1997-01-28 07:06:54 +00:00
alex
ee019a53dc
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
jkh
9c0cd3f9df
Make the long-awaited change from $Id$ to $FreeBSD$
...
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
mpp
1a24f26482
Document the fact that the administrator may have
...
to change syslog's config file in order for all of
ftpd's log messages to be displayed by syslogd.
Closes PR# 1559.
1997-01-11 20:17:05 +00:00
torstenb
2338c15cab
add flag to allow only anonymous ftp logins
...
Reviewed by: pst
1996-11-30 12:00:25 +00:00