mirror of
https://github.com/sheumann/hush.git
synced 2025-02-11 14:31:40 +00:00
ftpd: add LOG_NDELAY to openlog
This commit is contained in:
parent
1a6adbd71b
commit
5b28d314e7
@ -828,7 +828,8 @@ int ftpd_main(int argc, char **argv)
|
|||||||
* failure */
|
* failure */
|
||||||
}
|
}
|
||||||
|
|
||||||
openlog(applet_name, LOG_PID, LOG_DAEMON);
|
/* LOG_NDELAY is needed since we may chroot later */
|
||||||
|
openlog(applet_name, LOG_PID | LOG_NDELAY, LOG_DAEMON);
|
||||||
logmode |= LOGMODE_SYSLOG;
|
logmode |= LOGMODE_SYSLOG;
|
||||||
if (!(opts & OPT_v))
|
if (!(opts & OPT_v))
|
||||||
logmode = LOGMODE_SYSLOG;
|
logmode = LOGMODE_SYSLOG;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user