Prepare sudo front end messages for translation.

This commit is contained in:
Todd C. Miller
2011-05-06 17:47:51 -04:00
parent 96b7c1f0f4
commit c865a462cc
15 changed files with 180 additions and 174 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, _("can't save stdin"));
if (dup2(ttyfd, STDIN_FILENO) == -1)
error(1, "Can't dup2 stdin");
error(1, _("can't dup2 stdin"));
slot = ttyslot();
if (dup2(sfd, STDIN_FILENO) == -1)
error(1, "Can't restore stdin");
error(1, _("can't restore stdin"));
close(sfd);
return slot;