freebsd-skq/libexec/ftpd
eugen 82b41a4415 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
blacklist.c
config.h
extern.h
ftpchroot.5
ftpcmd.y
ftpd.8
ftpd.c ftpd(8): fix user context handling. 2017-10-06 13:46:05 +00:00
logwtmp.c
Makefile
Makefile.depend
pathnames.h
popen.c