Diff for /embedaddon/sudo/src/utmp.c between versions 1.1.1.4 and 1.1.1.5

version 1.1.1.4, 2013/07/22 10:46:13 version 1.1.1.5, 2014/06/15 16:12:55
Line 40 Line 40
 #ifdef HAVE_UNISTD_H  #ifdef HAVE_UNISTD_H
 # include <unistd.h>  # include <unistd.h>
 #endif /* HAVE_UNISTD_H */  #endif /* HAVE_UNISTD_H */
#if TIME_WITH_SYS_TIME#ifdef TIME_WITH_SYS_TIME
 # include <time.h>  # include <time.h>
 #endif  #endif
 #ifdef HAVE_UTMPX_H  #ifdef HAVE_UTMPX_H
Line 275  utmp_slot(const char *line, int ttyfd) Line 275  utmp_slot(const char *line, int ttyfd)
      * doesn't take an argument.       * doesn't take an argument.
      */       */
     if ((sfd = dup(STDIN_FILENO)) == -1)      if ((sfd = dup(STDIN_FILENO)) == -1)
        fatal(_("unable to save stdin"));        fatal(U_("unable to save stdin"));
     if (dup2(ttyfd, STDIN_FILENO) == -1)      if (dup2(ttyfd, STDIN_FILENO) == -1)
        fatal(_("unable to dup2 stdin"));        fatal(U_("unable to dup2 stdin"));
     slot = ttyslot();      slot = ttyslot();
     if (dup2(sfd, STDIN_FILENO) == -1)      if (dup2(sfd, STDIN_FILENO) == -1)
        fatal(_("unable to restore stdin"));        fatal(U_("unable to restore stdin"));
     close(sfd);      close(sfd);
   
     debug_return_int(slot);      debug_return_int(slot);

Removed from v.1.1.1.4  
changed lines
  Added in v.1.1.1.5


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>