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

@@ -260,12 +260,12 @@ utmp_slot(const char *line, int ttyfd)
* doesn't take an argument.
*/
if ((sfd = dup(STDIN_FILENO)) == -1)
error(1, _("can't save stdin"));
error(1, _("unable to save stdin"));
if (dup2(ttyfd, STDIN_FILENO) == -1)
error(1, _("can't dup2 stdin"));
error(1, _("unable to dup2 stdin"));
slot = ttyslot();
if (dup2(sfd, STDIN_FILENO) == -1)
error(1, _("can't restore stdin"));
error(1, _("unable to restore stdin"));
close(sfd);
return slot;