mirror of
https://github.com/sheumann/hush.git
synced 2024-08-20 04:28:57 +00:00
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.
This commit is contained in:
parent
f39c7c0c86
commit
b29028e351
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user