2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Minor warning/error message cleanup

This commit is contained in:
Todd C. Miller
2011-05-18 13:04:24 -04:00
parent fce0b906eb
commit 7960bde2db
8 changed files with 36 additions and 31 deletions

View File

@@ -559,14 +559,14 @@ fork_pty(struct command_details *details, int sv[], int *maxfd)
n = term_raw(io_fds[SFD_USERTTY], 0);
} while (!n && errno == EINTR);
if (!n)
error(1, _("Can't set terminal to raw mode"));
error(1, _("unable to set terminal to raw mode"));
}
}
child = fork();
switch (child) {
case -1:
error(1, "fork");
error(1, _("unable to fork"));
break;
case 0:
/* child */
@@ -873,7 +873,7 @@ exec_monitor(struct command_details *details, int backchannel)
error(1, _("unable to create pipe"));
child = fork();
if (child == -1) {
warning("fork");
warning(_("unable to fork"));
goto bad;
}
if (child == 0) {