Steps to Reproduce:
/sbin/nameif eth1 00:00:10:10:11:11; echo $?
Actual Results:
interface 'eth1' not found
0
Expected Results:
interface 'eth1' not found
1
int linenum;
char *line = NULL;
size_t linel = 0;
+ int ret = 0;
for (;;) {
int c = getopt_long(ac,av,"c:s",lopt,NULL);
while (clist) {
struct change *ch = clist;
clist = clist->next;
- if (!ch->found)
+ if (!ch->found){
warning(_("interface '%s' not found"), ch->ifname);
+ ret = 1;
+ }
free(ch);
}
if (use_syslog)
closelog();
- return 0;
+ return ret;
}