From b29028e35102df5dfb27f57c94c3e033740f849b Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 28 Feb 2008 18:02:23 +0000 Subject: 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. --- networking/zcip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/networking/zcip.c b/networking/zcip.c index d8d9a2d..8db840c 100644 --- a/networking/zcip.c +++ b/networking/zcip.c @@ -215,7 +215,7 @@ int zcip_main(int argc, char **argv) #if !BB_MMU // on NOMMU reexec early (or else we will rerun things twice) if (!FOREGROUND) - bb_daemonize_or_rexec(DAEMON_CHDIR_ROOT, argv); + bb_daemonize_or_rexec(0 /*was: DAEMON_CHDIR_ROOT*/, argv); #endif // open an ARP socket // (need to do it before openlog to prevent openlog from taking @@ -281,7 +281,7 @@ int zcip_main(int argc, char **argv) // daemonize now; don't delay system startup if (!FOREGROUND) { #if BB_MMU - bb_daemonize(DAEMON_CHDIR_ROOT); + bb_daemonize(0 /*was: DAEMON_CHDIR_ROOT*/); #endif bb_info_msg("start, interface %s", intf); } -- cgit v1.1