diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-01 17:05:57 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-01 17:05:57 +0000 |
commit | c82b5108e1a40f3b299043770e01d7d7db35de04 (patch) | |
tree | 35039a36868df644b8e5ffc766c1b0c921c88ab5 /networking/udhcp/dhcpc.c | |
parent | dc7a5eae36d31f5cfc301de2499329b8a03ea660 (diff) | |
download | busybox-w32-c82b5108e1a40f3b299043770e01d7d7db35de04.tar.gz busybox-w32-c82b5108e1a40f3b299043770e01d7d7db35de04.tar.bz2 busybox-w32-c82b5108e1a40f3b299043770e01d7d7db35de04.zip |
udhcp: new config option "Rewrite the lease file at every new acknowledge"
(Mats Erik Andersson <mats@blue2net.com> (Blue2Net AB))
udhcp: consistently treat server_config.start/end IPs as host-order
fix IP parsing for 64bit machines
fix unsafe hton macro usage in read_opt()
do not chdir("/") when daemonizing
fix help text
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r-- | networking/udhcp/dhcpc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index 06806ec66..50ac31e61 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c | |||
@@ -114,8 +114,7 @@ static void client_background(void) | |||
114 | * If that will be properly disabled for NOMMU, client_background() | 114 | * If that will be properly disabled for NOMMU, client_background() |
115 | * will work on NOMMU too */ | 115 | * will work on NOMMU too */ |
116 | #else | 116 | #else |
117 | // chdir(/) is problematic. Imagine that e.g. pidfile name is RELATIVE! what will unlink do then, eh? | 117 | bb_daemonize(0); |
118 | bb_daemonize(DAEMON_CHDIR_ROOT); | ||
119 | /* rewrite pidfile, as our pid is different now */ | 118 | /* rewrite pidfile, as our pid is different now */ |
120 | if (client_config.pidfile) | 119 | if (client_config.pidfile) |
121 | write_pidfile(client_config.pidfile); | 120 | write_pidfile(client_config.pidfile); |