projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a6adbd
)
ftpd: add LOG_NDELAY to openlog
author
Denis Vlasenko
<vda.linux@googlemail.com>
Mon, 9 Mar 2009 17:22:16 +0000
(17:22 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Mon, 9 Mar 2009 17:22:16 +0000
(17:22 -0000)
networking/ftpd.c
patch
|
blob
|
history
diff --git
a/networking/ftpd.c
b/networking/ftpd.c
index 2a7d8006b4f18c03616ec862137483e9b4d361d6..29589d185caaed059904c9f3d5e8bc9138da3b19 100644
(file)
--- 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;