diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-28 18:02:23 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-28 18:02:23 +0000 |
commit | b29028e35102df5dfb27f57c94c3e033740f849b (patch) | |
tree | 10f5c2eb6a8287aac9ba955a315c8f5820868537 | |
parent | f39c7c0c86d9f263f372be7c305bffa51af3c21e (diff) | |
download | busybox-w32-b29028e35102df5dfb27f57c94c3e033740f849b.tar.gz busybox-w32-b29028e35102df5dfb27f57c94c3e033740f849b.tar.bz2 busybox-w32-b29028e35102df5dfb27f57c94c3e033740f849b.zip |
zcip: chdiring to root when daemonizing is not useful,
only makes strip writer's life more miserable. Who want
to have zcip run in root dir, can trivially do that.
-rw-r--r-- | networking/zcip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/zcip.c b/networking/zcip.c index d8d9a2de1..8db840cec 100644 --- a/networking/zcip.c +++ b/networking/zcip.c | |||
@@ -215,7 +215,7 @@ int zcip_main(int argc, char **argv) | |||
215 | #if !BB_MMU | 215 | #if !BB_MMU |
216 | // on NOMMU reexec early (or else we will rerun things twice) | 216 | // on NOMMU reexec early (or else we will rerun things twice) |
217 | if (!FOREGROUND) | 217 | if (!FOREGROUND) |
218 | bb_daemonize_or_rexec(DAEMON_CHDIR_ROOT, argv); | 218 | bb_daemonize_or_rexec(0 /*was: DAEMON_CHDIR_ROOT*/, argv); |
219 | #endif | 219 | #endif |
220 | // open an ARP socket | 220 | // open an ARP socket |
221 | // (need to do it before openlog to prevent openlog from taking | 221 | // (need to do it before openlog to prevent openlog from taking |
@@ -281,7 +281,7 @@ int zcip_main(int argc, char **argv) | |||
281 | // daemonize now; don't delay system startup | 281 | // daemonize now; don't delay system startup |
282 | if (!FOREGROUND) { | 282 | if (!FOREGROUND) { |
283 | #if BB_MMU | 283 | #if BB_MMU |
284 | bb_daemonize(DAEMON_CHDIR_ROOT); | 284 | bb_daemonize(0 /*was: DAEMON_CHDIR_ROOT*/); |
285 | #endif | 285 | #endif |
286 | bb_info_msg("start, interface %s", intf); | 286 | bb_info_msg("start, interface %s", intf); |
287 | } | 287 | } |