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

Diff for /src/usr.bin/login/login.c between version 1.52 and 1.53

version 1.52, 2003/11/09 20:13:57 version 1.53, 2004/01/23 03:48:43
Line 276 
Line 276 
         } else          } else
                 ask = 1;                  ask = 1;
   
         for (cnt = getdtablesize(); cnt > 2; cnt--)          closefrom(3);
                 (void)close(cnt);  
   
         /*          /*
          * If effective user is not root, just run su(1) to emulate login(1).           * If effective user is not root, just run su(1) to emulate login(1).
Line 759 
Line 758 
          * Assume that stdin, stdout and stderr are 0, 1 and 2, and that           * Assume that stdin, stdout and stderr are 0, 1 and 2, and that
          * STDERR_FILENO is 2.           * STDERR_FILENO is 2.
          */           */
         for (cnt = getdtablesize(); cnt > STDERR_FILENO; cnt--)          closefrom(STDERR_FILENO + 1);
                 (void)close(cnt);  
   
         /*          /*
          * Close the authentication session, make sure it is marked           * Close the authentication session, make sure it is marked

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53