mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +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 */
|
||||
}
|
||||
|
||||
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;
|
||||
if (!(opts & OPT_v))
|
||||
logmode = LOGMODE_SYSLOG;
|
||||
|
Loading…
Reference in New Issue
Block a user