diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2002-03-20 22:11:43 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2002-03-20 22:11:43 +0000 |
commit | bdaeeba2b070efcd06e05d95ec4173405d951c47 (patch) | |
tree | b6b214f3beca049522787011be3436f5690253eb | |
parent | 73441c5fa3e0dcbee7f34132bd3f8c9a0d4fcd75 (diff) | |
download | drakx-bdaeeba2b070efcd06e05d95ec4173405d951c47.tar drakx-bdaeeba2b070efcd06e05d95ec4173405d951c47.tar.gz drakx-bdaeeba2b070efcd06e05d95ec4173405d951c47.tar.bz2 drakx-bdaeeba2b070efcd06e05d95ec4173405d951c47.tar.xz drakx-bdaeeba2b070efcd06e05d95ec4173405d951c47.zip |
don't save DHCP_HOSTNAME if the value is void
-rw-r--r-- | mdk-stage1/network.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c index 0033cded2..c47657fff 100644 --- a/mdk-stage1/network.c +++ b/mdk-stage1/network.c @@ -283,7 +283,7 @@ static int save_netinfo(struct interface_info * intf) { fprintf(f, "HOSTNAME=%s\n", hostname); if (domain) fprintf(f, "DOMAINNAME=%s\n", domain); - if (dhcp_hostname) + if (dhcp_hostname && !streq(dhcp_hostname, "")) fprintf(f, "DHCP_HOSTNAME=%s\n", dhcp_hostname); if (gateway.s_addr != 0) |