ref: 2247741fe0c788d5a48bca3f3aca02c5a3b8dcb2
parent: cedf916289e96e653160cdfc4c50a3760df4e44b
author: cinap_lenrek <[email protected]>
date: Tue May 1 20:03:54 EDT 2018
ip/ipconfig: fix exit status for ndbconfig
--- a/sys/src/cmd/ip/ipconfig/main.c
+++ b/sys/src/cmd/ip/ipconfig/main.c
@@ -318,8 +318,7 @@
plan9 = 0;
break;
case 'h':
- snprint(conf.hostname, sizeof conf.hostname, "%s",
- EARGF(usage()));
+ snprint(conf.hostname, sizeof conf.hostname, "%s", EARGF(usage()));
sendhostname = 1;
break;
case 'm':
@@ -389,7 +388,7 @@
if(dondbconfig){
dodhcp = 0;
ndbconfig();
- return;
+ break;
}
doadd();
break;