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
@ -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 New Issue
Block a user