mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Exit >1 when an error occurs, regardless of whether -s is specified (SUSv3)
This commit is contained in:
parent
26837af419
commit
c87180589e
1 changed files with 4 additions and 4 deletions
|
|
@ -116,7 +116,7 @@ endargs:
|
|||
if (!sflag)
|
||||
err(ERR_EXIT, "%s", file1);
|
||||
else
|
||||
exit(1);
|
||||
exit(ERR_EXIT);
|
||||
}
|
||||
if (strcmp(file2 = argv[1], "-") == 0) {
|
||||
if (special)
|
||||
|
|
@ -130,7 +130,7 @@ endargs:
|
|||
if (!sflag)
|
||||
err(ERR_EXIT, "%s", file2);
|
||||
else
|
||||
exit(1);
|
||||
exit(ERR_EXIT);
|
||||
}
|
||||
|
||||
skip1 = argc > 2 ? strtol(argv[2], NULL, 0) : 0;
|
||||
|
|
@ -141,7 +141,7 @@ endargs:
|
|||
if (!sflag)
|
||||
err(ERR_EXIT, "%s", file1);
|
||||
else
|
||||
exit(1);
|
||||
exit(ERR_EXIT);
|
||||
}
|
||||
if (!S_ISREG(sb1.st_mode))
|
||||
special = 1;
|
||||
|
|
@ -150,7 +150,7 @@ endargs:
|
|||
if (!sflag)
|
||||
err(ERR_EXIT, "%s", file2);
|
||||
else
|
||||
exit(1);
|
||||
exit(ERR_EXIT);
|
||||
}
|
||||
if (!S_ISREG(sb2.st_mode))
|
||||
special = 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue