can't -> "unable to" in warning/error messages

This commit is contained in:
Todd C. Miller
2011-05-18 12:36:26 -04:00
parent 159d7e393a
commit 6f8cd91928
9 changed files with 32 additions and 29 deletions

View File

@@ -120,12 +120,12 @@ systrace_attach(pid)
switch (fork()) {
case -1:
error(1, "can't fork");
error(1, "unable to fork");
case 0:
/* tracer, fork again to completely disassociate */
switch (fork()) {
case -1:
warning("can't fork");
warning("unable to fork");
kill(pid, SIGKILL);
_exit(1);
case 0:
@@ -898,13 +898,13 @@ check_execv(fd, pid, seqnr, askp, policyp, errorp)
*/
if (sudo_goodpath(user_cmnd, user_stat) == NULL) {
if (rval != -1 && ioctl(fd, STRIOCRESCWD, 0) != 0)
warning("can't restore cwd");
warning("unable to restore cwd");
*policyp = SYSTR_POLICY_NEVER;
*errorp = EACCES;
return 0;
}
if (rval != -1 && ioctl(fd, STRIOCRESCWD, 0) != 0)
warning("can't restore cwd");
warning("unable to restore cwd");
/* Check sudoers and log the result. */
init_defaults();