christos
5a45295fbd
fstat returns -1 on error (Maxime Villard)
...
also while (1) -> for (;;)
2013-07-31 19:50:47 +00:00
christos
304ddee50c
remove unneeded initialization.
2013-07-03 14:16:01 +00:00
christos
9c7eb973a4
check that stat succeeded before testing the guts of struct stat
...
(Manime Villard)
2013-07-03 14:15:47 +00:00
joerg
9e69720425
Fix violations of the sequence point rule.
2013-06-28 15:04:35 +00:00
lukem
1baf19f383
Convert from __attribute__(foo) to the __foo equiv in <sys/cdefs.h>
2013-03-21 05:53:01 +00:00
lukem
f4ec715007
Update version to 20110904 for the user-visible change I made back then:
...
Reduce priority of syslog message if getpeername returns ENOTCONN.
PR bin/18934 by Greg A. Woods (with supplied fix).
2013-03-21 00:17:26 +00:00
christos
bef47ea987
include pwd.h for password stuff
2012-11-04 20:46:46 +00:00
dholland
c5642eeaf7
Pass WARNS=5
2012-06-19 06:06:34 +00:00
plunky
2b8aaed8cd
NULL does not need a cast, here
2011-09-16 16:13:16 +00:00
lukem
30781daf0c
Reduce priority of syslog message if getpeername returns ENOTCONN.
...
PR bin/18934 by Greg A. Woods (with supplied fix).
2011-09-04 23:16:41 +00:00
joerg
9eba1e423c
Use __dead
2011-08-29 20:41:06 +00:00
christos
41592955fd
remove gcc-4.5 hack
2011-08-14 11:46:28 +00:00
joerg
30dc9201bb
Fix memcpy usage.
2011-07-01 02:46:15 +00:00
mrg
c111245a78
apply some -Wno-error and/or -fno-strict-aliasing.
...
all of this should be looked at closer, but some of them are not
very trivial.
2011-06-22 02:49:41 +00:00
elric
07b0c75a48
We no longer need -I/usr/include/krb5.
2011-04-24 21:42:06 +00:00
christos
bfd4da8575
PR/44390: Paul Koning: make code gcc-4.5.1 friendly.
2011-01-14 23:56:13 +00:00
lukem
f009f7a2e4
Update version to 20100320 for Christos' commit to popen.c 1.37 for:
...
PR/43023: Bruce Cran: FTPD bug remote crash
2010-03-21 20:27:26 +00:00
christos
692b0132a0
PR/43023: Bruce Cran: FTPD bug remote crash
...
Since we specify NOCHECK, in the NOMATCH case gl_pathv can be NULL.
(From FreeBSD)
2010-03-20 18:23:30 +00:00
lukem
11a6d49961
NetBSD-ftpd 20091107:
...
* Fix WARNS=4 issues (const & sign mismatches, etc)
* Ensure various ftpd.conf values can't exceed their underlying types.
* Fix for 64 bit time_t and dev_t
* Rename internal getline() function to get_line() so it does
conflict with the getline(3) libc function.
* Log both the hostname and numeric address.
* Improve man page mdoc formatting
2009-11-07 03:10:05 +00:00
roy
7027866a09
Rename internal getline() function to get_line() so it does
...
conflict with the soon to be added getline(3) libc function.
2009-07-13 19:05:39 +00:00
wiz
93dafb2e39
Drop trailing whitespace.
2009-05-01 10:53:27 +00:00
lukem
24c7ea10da
Simplify the example command used to extract a wu-ftpd compatible xferlog.
2009-05-01 09:47:26 +00:00
joerg
3b17d40bfb
Don't use .Xo/.Xc or .Oo/.Oc over .It lines to work around the macro
...
argument limit in ancient groff versions.
2009-04-09 02:25:45 +00:00
lukem
fd6e87486b
Fix 'vfork clobber' warning on vax.
...
Problem noted by and fix confirmed by Olaf 'Rhialto' Seibert.
2009-03-18 02:27:41 +00:00
joerg
854ee47087
Declare all columns.
2009-03-15 08:05:22 +00:00
lukem
0053962f9d
Fix WARNS=4 issues (const & sign mismatches, etc)
...
Ensure various ftpd.conf values can't exceed their underlying types.
2009-03-15 07:48:36 +00:00
lukem
a341f7315c
bump version for remoteloghost & portability changes
2009-03-02 03:48:43 +00:00
lukem
6269ac3894
Use LLF (et al) instead of "%lld" (et al).
2009-03-02 03:47:44 +00:00
christos
313780f726
PR/40339: Ed Ravin: make ftpd log both the hostname and numeric address.
2009-01-08 18:47:49 +00:00
christos
0d7dc435fd
fix for 64 bit time_t and dev_t
2008-12-29 00:33:34 +00:00
lukem
a69f51a660
Constify.
...
Rework an expression to make it easier to conditionally compile.
2008-10-28 08:05:26 +00:00
lukem
b9b397131e
Use passwd(5) instead of /etc/pwd.db as the name of the "password data base".
2008-09-21 06:20:46 +00:00
lukem
d451eab1e2
Enhance -C to support an optional @host ('-C user[@host]'):
...
checks whether user as connecting from host would be granted
access by ftpusers(5).
Support IPv6 in the host directive of ftpusers(5).
(May resolve PR 26555)
Both features from Rudolf Cejka <cejkar@fit.vutbr.cz>
(FreeBSD's tnftpd port maintainer).
2008-09-16 12:30:38 +00:00
lukem
de99131c2b
Support building with -DNO_INTERNAL_LS
2008-09-16 12:23:28 +00:00
lukem
2332514a42
Don't split large commands into multiple commands; just fail on them.
...
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.org>
2008-09-13 03:30:35 +00:00
lukem
f1d75d00ca
Crank copyright dates
2008-09-13 02:41:52 +00:00
lukem
0c4ddb1599
Remove the \n and tabs from the __COPYRIGHT() strings.
2008-07-20 01:09:06 +00:00
lukem
8cc604a385
Add missing RCSID.
2008-06-09 01:00:23 +00:00
lukem
ef70558f4f
Don't use non-standard "u_<foo>" types.
...
Strip trailing whitespace (as well as ':'s) off PAM password prompts.
Improve some debug logging related to PAM.
2008-06-09 00:33:39 +00:00
martin
cd22f25e6f
Move TNF licenses to 2 clause form
2008-05-02 18:11:04 +00:00
martin
11a6dbe728
Convert TNF licenses to new 2 clause variant
2008-04-30 13:10:46 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
lukem
4f3847e772
Reorganize USE_PAM support so that the reply(331,) from USER is
...
performed by the pam_conv (PAM conversation) callback, which then
getline()s the PASS reply internally. This involves calling
auth_pam() from user() and caching the result to use later in pass().
This allows the PAM modules to present a different password prompt
dialog if necesary. For example:
Name (localhost:lukem):
331 User lukem accepted, provide password [ otp-md4 89 xxxx12345 ].
versus
Name (localhost:lukem): root
331 User root accepted, provide password.
This is independent of (and effectively exclusive to) USE_SKEY support.
Previously ftpd with USE_SKEY=yes would provide the skey prompt
if the user had an skey configured, even if /etc/pam.d/ftpd didn't
have pam_skey in use.
I.e., ftpd shouldn't need special support for custom password prompts
(such as skey) if PAM is in use.
2008-03-27 08:12:09 +00:00
lukem
e9810351a7
Switch from lockf() to (more portable) fcntl() locking
2008-03-09 20:11:43 +00:00
lukem
d9ce2acdd5
Explicitly note the unsupported requests from RFC 2228.
...
Improvements from FreeBSD:
* Document `ftp-chroot' from login.conf(5).
* Document that SIZE is prevented for files > 10240 bytes via ASCII transfers.
2008-01-30 02:16:35 +00:00
wiz
04cd5014b6
filetypes -> file types.
2007-12-02 19:15:07 +00:00
lukem
f21ab048da
Rename cred_t to ftpd_cred_t; the former causes a nameclash on Solaris.
2007-07-23 10:41:05 +00:00
lukem
0def0e3a66
Rename HAVE_SOCKADDR_SA_LEN to HAVE_STRUCT_SOCKADDR_SA_LEN.
...
Use defined(HAVE_foo) instead of just testing HAVE_foo.
2007-07-22 05:06:45 +00:00
christos
b7c1cbea43
PR/36468: Andreas Wrede: ftpd(8) always logs hostnames. Add -n option to display
...
addresses.
2007-06-10 20:24:31 +00:00
lukem
aeb5730de8
Replace references from draft-ietf-ftpext-mlst-NN to RFC 3659.
2007-05-10 05:59:30 +00:00