[BACK]Return to readpass.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/readpass.c between version 1.37 and 1.38

version 1.37, 2006/03/25 13:17:02 version 1.38, 2006/06/06 10:20:20
Line 36 
Line 36 
 #include "pathnames.h"  #include "pathnames.h"
 #include "log.h"  #include "log.h"
 #include "ssh.h"  #include "ssh.h"
   #include "uidswap.h"
   
 static char *  static char *
 ssh_askpass(char *askpass, const char *msg)  ssh_askpass(char *askpass, const char *msg)
Line 59 
Line 60 
                 return NULL;                  return NULL;
         }          }
         if (pid == 0) {          if (pid == 0) {
                 seteuid(getuid());                  permanently_set_uid(getpwuid(getuid()));
                 setuid(getuid());  
                 close(p[0]);                  close(p[0]);
                 if (dup2(p[1], STDOUT_FILENO) < 0)                  if (dup2(p[1], STDOUT_FILENO) < 0)
                         fatal("ssh_askpass: dup2: %s", strerror(errno));                          fatal("ssh_askpass: dup2: %s", strerror(errno));

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38