shm
31d615acc3
CID 603440: ensure that closing socket exists
2016-07-19 21:25:38 +00:00
christos
f2192299b9
volatile for gcc 5
2016-03-17 00:17:58 +00:00
christos
8d60259f07
PR/50665: David Binderman: move "dir" to the outer scope so it stays alive
...
when the pointer is used later.
2016-01-17 14:46:07 +00:00
shm
c766c3d3c2
Use explicit_memset(3) instead of memset(3) to clear password
2015-08-10 07:45:50 +00:00
shm
92a992f213
Fix directory stream leaks
2015-08-10 07:32:49 +00:00
shm
c09e755be0
Removed unnecessary memset(3) call
2015-08-09 20:34:24 +00:00
shm
0c7f5afe2e
Clear utmpx struct before writing it to wtmpx files
2015-08-09 12:17:30 +00:00
christos
068e5a5145
blacklist hooks
2015-01-25 15:52:44 +00:00
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