Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/usr.sbin/syslogd
Module Name: src
Committed By: jschauma
Date: Sat Nov 9 15:56:35 UTC 2024
Modified Files:
src/usr.sbin/syslogd: syslogd.c
Log Message:
If '-u' or '-g' is given, create the pidfile prior to changing e[ug]id
The subsequent call to pidfile(3) after we daemonize will correctly take
over the pidfile.
Note: this will likely leave the truncated pidfile in place upon exit,
since the effective user is unlikely to have write permissions on
_PATH_VARRUN. This isn't a problem, since pidfile(3) does the right
thing at startup again, and the the pidfile being truncated will not
lead to erroneous diagnosis.
This fixes bin/27309, which I filed a little over 20 years ago.
To generate a diff of this commit:
cvs rdiff -u -r1.145 -r1.146 src/usr.sbin/syslogd/syslogd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index