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:
mux 2005-05-19 21:33:48 +00:00
parent 84edbe2edc
commit b6f0b710e0

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