mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Correct a few places where we called warn() when warnx() should have
been used. Submitted by: "Liam J. Foy" <liamfoy@sepulcrum.org> Obtained from: DragonFlyBSD
This commit is contained in:
parent
003daaea5f
commit
8835fa2759
1 changed files with 4 additions and 4 deletions
|
|
@ -351,11 +351,11 @@ copy(char *from, char *to)
|
|||
return (1);
|
||||
}
|
||||
if (!WIFEXITED(status)) {
|
||||
warn("%s: did not terminate normally", _PATH_CP);
|
||||
warnx("%s: did not terminate normally", _PATH_CP);
|
||||
return (1);
|
||||
}
|
||||
if (WEXITSTATUS(status)) {
|
||||
warn("%s: terminated with %d (non-zero) status",
|
||||
warnx("%s: terminated with %d (non-zero) status",
|
||||
_PATH_CP, WEXITSTATUS(status));
|
||||
return (1);
|
||||
}
|
||||
|
|
@ -369,11 +369,11 @@ copy(char *from, char *to)
|
|||
return (1);
|
||||
}
|
||||
if (!WIFEXITED(status)) {
|
||||
warn("%s: did not terminate normally", _PATH_RM);
|
||||
warnx("%s: did not terminate normally", _PATH_RM);
|
||||
return (1);
|
||||
}
|
||||
if (WEXITSTATUS(status)) {
|
||||
warn("%s: terminated with %d (non-zero) status",
|
||||
warnx("%s: terminated with %d (non-zero) status",
|
||||
_PATH_RM, WEXITSTATUS(status));
|
||||
return (1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue