[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.162 and 1.163

version 1.162, 2003/08/28 12:54:34 version 1.163, 2003/08/31 13:29:05
Line 389 
Line 389 
   
         session_proctitle(s);          session_proctitle(s);
   
 #ifdef GSSAPI  
         temporarily_use_uid(s->pw);  
         ssh_gssapi_storecreds();  
         restore_uid();  
 #endif  
   
         /* Fork the child. */          /* Fork the child. */
         if ((pid = fork()) == 0) {          if ((pid = fork()) == 0) {
                 fatal_remove_all_cleanups();                  fatal_remove_all_cleanups();
Line 503 
Line 497 
         ptyfd = s->ptyfd;          ptyfd = s->ptyfd;
         ttyfd = s->ttyfd;          ttyfd = s->ttyfd;
   
 #ifdef GSSAPI  
         temporarily_use_uid(s->pw);  
         ssh_gssapi_storecreds();  
         restore_uid();  
 #endif  
   
         /* Fork the child. */          /* Fork the child. */
         if ((pid = fork()) == 0) {          if ((pid = fork()) == 0) {
                 fatal_remove_all_cleanups();                  fatal_remove_all_cleanups();
Line 584 
Line 572 
                 command = forced_command;                  command = forced_command;
                 debug("Forced command '%.900s'", command);                  debug("Forced command '%.900s'", command);
         }          }
   
   #ifdef GSSAPI
           if (options.gss_authentication) {
                   temporarily_use_uid(s->pw);
                   ssh_gssapi_storecreds();
                   restore_uid();
           }
   #endif
   
         if (s->ttyfd != -1)          if (s->ttyfd != -1)
                 do_exec_pty(s, command);                  do_exec_pty(s, command);

Legend:
Removed from v.1.162  
changed lines
  Added in v.1.163