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: Michele Petrazzo <michele.petrazzo@unipex.it>
This commit is contained in:
Michele Petrazzo - Unipex 2010-03-06 08:56:53 +00:00 committed by Stephen Hemminger
parent 33ff9324de
commit 1db61e022d
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}