X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fnaddress.c;h=035bc9fca48819103dc3b6970e3e0cff1aaf419c;hb=81b438ba5510581d95fc5daa253743143f50544b;hp=9ff10377611b258b193a0d10ee0462baf5f816b0;hpb=bd41fcf11dc8849d4b7ba2af39f808a4a6c0a62e;p=util-vserver.git diff --git a/src/naddress.c b/src/naddress.c index 9ff1037..035bc9f 100644 --- a/src/naddress.c +++ b/src/naddress.c @@ -339,6 +339,8 @@ doit(struct Arguments *args) for (ips = &args->head; ips->next; ips = ips->next) { tellAddress(&ips->a, args->is_silent); if (vc_net_add(args->nid, &ips->a) != (int)ips->a.count) { + if (!args->is_silent) + WRITE_MSG(1, "\n"); perror(ENSC_WRAPPERS_PREFIX "vc_net_add()"); exit(wrapper_exit_code); } @@ -368,6 +370,7 @@ int main (int argc, char *argv[]) .is_silent = false, .do_add = false, .do_remove = false, + .do_set = false, .head = { .next = NULL }, }; struct vc_ips *ips = &args.head; @@ -377,19 +380,19 @@ int main (int argc, char *argv[]) if (c==-1) break; switch (c) { - case CMD_HELP : showHelp(1, argv[0], 0); - case CMD_VERSION : showVersion(); - case CMD_SILENT : args.is_silent = true; break; - case CMD_BCAST : readBcast(optarg, &ips); break; - case CMD_NID : args.nid = Evc_nidopt2nid(optarg,true); break; - case CMD_ADD : args.do_add = true; break; - case CMD_REMOVE : args.do_remove = true; break; - case CMD_SET : args.do_set = true; break; - case CMD_IP : readIP(optarg, &ips); break; + case CMD_HELP : showHelp(1, argv[0], 0); + case CMD_VERSION : showVersion(); + case CMD_SILENT : args.is_silent = true; break; + case CMD_NID : args.nid = Evc_nidopt2nid(optarg,true); break; + case CMD_ADD : args.do_add = true; break; + case CMD_REMOVE : args.do_remove = true; break; + case CMD_SET : args.do_set = true; break; + case CMD_IP : readIP(optarg, &ips); break; + case CMD_BCAST : readBcast(optarg, &ips); break; default : WRITE_MSG(2, "Try '"); WRITE_STR(2, argv[0]); - WRITE_MSG(2, " --help\" for more information.\n"); + WRITE_MSG(2, " --help' for more information.\n"); exit(wrapper_exit_code); break; }