Commit 1db61e02 authored by Michele Petrazzo - Unipex's avatar Michele Petrazzo - Unipex Committed by Stephen Hemminger

Continue after errors in -batch

Allow ip to process all the file passed with the -batch argument when
is passed also the -force switch
Signed-off-by: default avatarMichele Petrazzo <michele.petrazzo@unipex.it>
parent 33ff9324
......@@ -1039,7 +1039,7 @@ static int ipaddr_modify(int cmd, int flags, int argc, char **argv)
}
if (l && matches(d, l) != 0) {
fprintf(stderr, "\"dev\" (%s) must match \"label\" (%s).\n", d, l);
exit(1);
return -1;
}
if (peer_len == 0 && local_len) {
......@@ -1104,7 +1104,7 @@ static int ipaddr_modify(int cmd, int flags, int argc, char **argv)
}
if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0)
exit(2);
return -2;
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment