summaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.c
diff options
context:
space:
mode:
authorDenys Vlasenko2017-05-08 15:02:07 +0200
committerDenys Vlasenko2017-05-08 15:02:07 +0200
commit741bfa9a7219e5d1a5540eddeb0953788549e1da (patch)
treee320321da8a915f5ddfd187862c071548d6092e8 /networking/udhcp/dhcpc.c
parentc5d16e92c16cdd5ee57101e1ce88b5855e8ece6c (diff)
downloadbusybox-741bfa9a7219e5d1a5540eddeb0953788549e1da.zip
busybox-741bfa9a7219e5d1a5540eddeb0953788549e1da.tar.gz
udhcpc: fix "udhcpc -x hostname:<name> not working on nommu"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r--networking/udhcp/dhcpc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index c45a0af..1ccfff4 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -1365,6 +1365,8 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
/* now it looks similar to udhcpd's config file line:
* "optname optval", using the common routine: */
udhcp_str2optset(optstr, &client_config.options);
+ if (colon)
+ *colon = ':'; /* restore it for NOMMU reexec */
}
if (udhcp_read_interface(client_config.interface,