freebsd-nq/libexec/ftpd
Eugene Grosbein de8d85c908 ftpd(8): fix user context handling.
Apply authenticated user context after update of wtmp(5) at start of session,
so that ftpd process is not killed by kernel with SIGXFSZ when user has
"filesize" limit lower than size of system wtmp file. Same applies
to session finalization: revert to super-user context before update of wtmp.

If ftpd hits limit while writing a file at user request,
do not get killed with SIGXFSZ instantly but apparently ignore the signal,
process error and report it to the user, and continue with the session.

PR:		143570
Approved by:	avg (mentor), mav (mentor)
MFC after:	1 week
2017-10-06 13:46:05 +00:00
..
blacklist_client.h Improve blacklist support before upgrading libblacklist 2017-05-06 04:17:48 +00:00
blacklist.c Improve blacklist support before upgrading libblacklist 2017-05-06 04:17:48 +00:00
config.h
extern.h Rename getline with get_line to avoid collision with getline(3) 2016-05-10 11:12:31 +00:00
ftpchroot.5
ftpcmd.y Rename getline with get_line to avoid collision with getline(3) 2016-05-10 11:12:31 +00:00
ftpd.8 Revisit blacklistd support in ftpd 2016-11-01 18:18:09 +00:00
ftpd.c ftpd(8): fix user context handling. 2017-10-06 13:46:05 +00:00
logwtmp.c
Makefile libexec: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:28:03 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies 2016-06-14 16:55:05 +00:00
pathnames.h
popen.c libexec: minor spelling fixes in comments. 2016-05-01 19:39:23 +00:00