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

Diff for /src/usr.bin/ssh/sshconnect2.c between version 1.173 and 1.174

version 1.173, 2009/10/24 11:13:54 version 1.174, 2009/11/10 04:30:45
Line 31 
Line 31 
 #include <sys/stat.h>  #include <sys/stat.h>
   
 #include <errno.h>  #include <errno.h>
   #include <fcntl.h>
 #include <netdb.h>  #include <netdb.h>
 #include <stdio.h>  #include <stdio.h>
 #include <string.h>  #include <string.h>
Line 1521 
Line 1522 
                 return -1;                  return -1;
         }          }
         if (pid == 0) {          if (pid == 0) {
                   /* keep the socket on exec */
                   fcntl(packet_get_connection_in(), F_SETFD, 0);
                 permanently_drop_suid(getuid());                  permanently_drop_suid(getuid());
                 close(from[0]);                  close(from[0]);
                 if (dup2(from[1], STDOUT_FILENO) < 0)                  if (dup2(from[1], STDOUT_FILENO) < 0)

Legend:
Removed from v.1.173  
changed lines
  Added in v.1.174