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

Diff for /src/usr.bin/ssh/sshd.c between version 1.21 and 1.22

version 1.21, 1999/10/05 18:34:55 version 1.22, 1999/10/05 22:18:52
Line 2102 
Line 2102 
      initgroups, because at least on Solaris 2.3 it leaves file descriptors       initgroups, because at least on Solaris 2.3 it leaves file descriptors
      open. */       open. */
   for (i = 3; i < 64; i++)    for (i = 3; i < 64; i++)
     {      close(i);
       if (i == auth_get_fd())  
         continue;  
       close(i);  
     }  
   
   /* Change current directory to the user\'s home directory. */    /* Change current directory to the user\'s home directory. */
   if (chdir(pw->pw_dir) < 0)    if (chdir(pw->pw_dir) < 0)

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22