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

Diff for /src/usr.bin/ssh/session.c between version 1.103 and 1.104

version 1.103, 2001/10/06 00:36:42 version 1.104, 2001/10/09 10:12:08
Line 967 
Line 967 
         for (i = 3; i < 64; i++)          for (i = 3; i < 64; i++)
                 close(i);                  close(i);
   
         /* Change current directory to the user\'s home directory. */  
         if (chdir(pw->pw_dir) < 0) {  
                 fprintf(stderr, "Could not chdir to home directory %s: %s\n",  
                         pw->pw_dir, strerror(errno));  
 #ifdef HAVE_LOGIN_CAP  
                 if (login_getcapbool(lc, "requirehome", 0))  
                         exit(1);  
 #endif  
         }  
   
         /*          /*
          * Must take new environment into use so that .ssh/rc, /etc/sshrc and           * Must take new environment into use so that .ssh/rc, /etc/sshrc and
          * xauth are run in the proper environment.           * xauth are run in the proper environment.
Line 994 
Line 984 
                 krb_afslog(0, 0);                  krb_afslog(0, 0);
         }          }
 #endif /* AFS */  #endif /* AFS */
   
           /* Change current directory to the user\'s home directory. */
           if (chdir(pw->pw_dir) < 0) {
                   fprintf(stderr, "Could not chdir to home directory %s: %s\n",
                       pw->pw_dir, strerror(errno));
   #ifdef HAVE_LOGIN_CAP
                   if (login_getcapbool(lc, "requirehome", 0))
                           exit(1);
   #endif
           }
   
         /*          /*
          * Run $HOME/.ssh/rc, /etc/sshrc, or xauth (whichever is found first           * Run $HOME/.ssh/rc, /etc/sshrc, or xauth (whichever is found first

Legend:
Removed from v.1.103  
changed lines
  Added in v.1.104