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:
6c2406a
)
udhcpd: fix daemonize crash on nommu systems
author
Mike Frysinger
<vapier@gentoo.org>
Fri, 4 Jun 2010 17:24:50 +0000
(13:24 -0400)
committer
Mike Frysinger
<vapier@gentoo.org>
Fri, 4 Jun 2010 17:24:50 +0000
(13:24 -0400)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
networking/udhcp/dhcpd.c
patch
|
blob
|
history
diff --git
a/networking/udhcp/dhcpd.c
b/networking/udhcp/dhcpd.c
index e48473389221f8c5e33d403dea1a7465b3979158..043220de9bdc24e3840cfc7ea76873355874fea9 100644
(file)
--- a/
networking/udhcp/dhcpd.c
+++ b/
networking/udhcp/dhcpd.c
@@
-305,11
+305,12
@@
int udhcpd_main(int argc UNUSED_PARAM, char **argv)
, &dhcp_verbose
#endif
);
- argv += optind;
if (!(opt & 1)) { /* no -f */
bb_daemonize_or_rexec(0, argv);
logmode = LOGMODE_NONE;
}
+ /* update argv after the possible vfork+exec in daemonize */
+ argv += optind;
if (opt & 2) { /* -S */
openlog(applet_name, LOG_PID, LOG_DAEMON);
logmode |= LOGMODE_SYSLOG;