Rename warning/fatal -> sudo_warn/sudo_fatal to avoid namespace

pollution in libsudo_util.so.
This commit is contained in:
Todd C. Miller
2014-06-27 09:30:52 -06:00
parent d36846a699
commit aecef4aa1d
59 changed files with 729 additions and 729 deletions

View File

@@ -275,12 +275,12 @@ utmp_slot(const char *line, int ttyfd)
* doesn't take an argument.
*/
if ((sfd = dup(STDIN_FILENO)) == -1)
fatal(U_("unable to save stdin"));
sudo_fatal(U_("unable to save stdin"));
if (dup2(ttyfd, STDIN_FILENO) == -1)
fatal(U_("unable to dup2 stdin"));
sudo_fatal(U_("unable to dup2 stdin"));
slot = ttyslot();
if (dup2(sfd, STDIN_FILENO) == -1)
fatal(U_("unable to restore stdin"));
sudo_fatal(U_("unable to restore stdin"));
close(sfd);
debug_return_int(slot);