Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-03-09 20:22:16 +0300
committerDenis Vlasenko <vda.linux@googlemail.com>2009-03-09 20:22:16 +0300
commit5b28d314e7a731c5cee51e811e892188e800ea99 (patch)
treec87a4c786cfa13ea0005313e5bacefbda63db51a /networking/ftpd.c
parent1a6adbd71b0ff7b97d51e949ef13882da9910d86 (diff)
ftpd: add LOG_NDELAY to openlog
Diffstat (limited to 'networking/ftpd.c')
-rw-r--r--networking/ftpd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/ftpd.c b/networking/ftpd.c
index 2a7d8006b..29589d185 100644
--- a/networking/ftpd.c
+++ b/networking/ftpd.c
@@ -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;