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:
Maxime Henrion 2005-05-19 21:33:48 +00:00
parent 003daaea5f
commit 8835fa2759

View File

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