mharo
73f4a09b05
When a STAT command is sent to ftpd as an out-of-band transmission during
...
a file transfer, the command was mishandled on every other receipt of the
command.
PR: 13261
Submitted by: Ian Lepore <ian@plutotech.com>
1999-09-12 01:27:46 +00:00
markm
918093dd50
Add common error lib for the Kerberos case.
1999-09-06 06:32:02 +00:00
peter
76f0c923fe
$Id$ -> $FreeBSD$
1999-08-28 00:22:10 +00:00
peter
b658a57c22
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
mpp
f90c97ac2f
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
ghelmer
78f6c49fe5
Add missing -A option to SYNOPSIS.
...
PR: docs/10771
1999-05-04 19:42:01 +00:00
imp
8b33b875ef
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
c6c6c7de65
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
a77173a7cd
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
7df90d6ad0
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
a6fb6a2c8e
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
7e9c3df2e6
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
e1957bff39
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
a04d0a21b8
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
2d02bdedf2
Document the use of lines beginning with a '#' as comment lines.
...
PR: 5676
1998-07-09 11:38:21 +00:00
jb
cb304595fc
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
247dc5c8d3
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
66c1e653c8
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
649e775fd2
Return back initial tzset() must be before first chroot
1998-05-16 21:23:33 +00:00
ache
ac3cdb08ee
Return back vfork and use execve with TZ="" environment in vfork case
1998-05-15 16:51:06 +00:00
ache
2a9d8c7d6f
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
89d1578492
Move TZ="" assignment just before exec to not touch other time stuff
1998-05-15 16:08:52 +00:00
ache
9ab1a03565
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
1f573458e3
Simplified by using new yacc rules and by not generating y.tab.h.
1998-05-04 18:20:18 +00:00
dg
3f47a3231d
Set TCP_NODELAY on the control channel to improve performance a bit.
1998-04-28 03:37:23 +00:00
dg
1c811baafb
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
b58c846db6
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
e3cd6b581b
Make ftpd log IP-addresses in addition to hostnames.
1998-02-24 08:45:57 +00:00
obrien
55c0d527fe
MFS.
1998-02-18 10:53:16 +00:00
imp
2dee7f5729
Various sprintf -> snprintf fixes.
...
Minor style fix (strcpy(foo,"") -> *foo = '\0')
Obtained from: OpenBSD(?)
1997-12-24 19:13:23 +00:00
steve
0bf80e493d
FTP_INTERNAL_LS -> FTPD_INTERNAL_LS
...
Pointed out by: Jaye Mathisen <mrcpu@cdsnet.net>
1997-12-04 03:58:02 +00:00
charnier
17df8f3da3
Cosmetics in man page. Exit(-1) -> exit(1).
1997-11-21 07:38:43 +00:00
jkh
418d0a6a92
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
d8ac409160
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
572d82313f
Hopefully better fix for logwtmp(): rename to a private
...
version ftpd_logwtmp().
1997-09-05 11:44:00 +00:00
tg
ac3b66e27a
logwtmp() prototype is in <libutil.h>.
1997-09-05 11:17:22 +00:00
davidn
d10a6136b7
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
dca03b1877
Tell the chroot()ed user that "access restrictions apply".
1997-05-21 23:24:41 +00:00
davidn
f766bd31c5
login_getclass() -> login_getpwclass().
1997-05-10 19:02:03 +00:00
davidn
55c9dac450
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
004ba69629
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
e7ce274b1e
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
a1afe71480
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
a3b6ff7143
Add basic login.conf (sans authentication) support.
1997-04-23 04:56:39 +00:00
imp
3125d931c2
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
948c029576
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
090fb430f1
Revert $FreeBSD$ to $Id$
1997-02-22 14:22:49 +00:00
mpp
58f212920d
#include <string.h> to help silence -Wall.
1997-02-20 23:11:22 +00:00
guido
7dfa42b35f
Actually allow the -R flag.
1997-02-13 19:24:25 +00:00
dg
abe7289a8c
Oops, fix white space in last commit.
1997-01-28 07:09:05 +00:00