[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.229 and 1.230

version 1.229, 2008/02/20 15:25:26 version 1.230, 2008/02/22 05:58:56
Line 435 
Line 435 
                 if (dup2(err[0], 2) < 0)        /* stderr */                  if (dup2(err[0], 2) < 0)        /* stderr */
                         perror("dup2 stderr");                          perror("dup2 stderr");
   
                 closefrom(STDERR_FILENO + 1);  
   
                 /* Do processing for the child (exec command etc). */                  /* Do processing for the child (exec command etc). */
                 do_child(s, command);                  do_child(s, command);
                 /* NOTREACHED */                  /* NOTREACHED */
Line 507 
Line 505 
                 if (!(options.use_login && command == NULL))                  if (!(options.use_login && command == NULL))
                         do_login(s, command);                          do_login(s, command);
   
                 closefrom(STDERR_FILENO + 1);  
   
                 /* Do common processing for the child, such as execing the command. */                  /* Do common processing for the child, such as execing the command. */
                 do_child(s, command);                  do_child(s, command);
                 /* NOTREACHED */                  /* NOTREACHED */
Line 1218 
Line 1214 
                 if (login_getcapbool(lc, "requirehome", 0))                  if (login_getcapbool(lc, "requirehome", 0))
                         exit(1);                          exit(1);
         }          }
   
           closefrom(STDERR_FILENO + 1);
   
         if (!options.use_login)          if (!options.use_login)
                 do_rc_files(s, shell);                  do_rc_files(s, shell);

Legend:
Removed from v.1.229  
changed lines
  Added in v.1.230