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

Diff for /src/usr.bin/ssh/auth-rhosts.c between version 1.21 and 1.22

version 1.21, 2001/02/08 19:30:51 version 1.22, 2001/04/06 21:00:06
Line 161 
Line 161 
         if (pw == NULL)          if (pw == NULL)
                 return 0;                  return 0;
         /* Switch to the user's uid. */          /* Switch to the user's uid. */
         temporarily_use_uid(pw->pw_uid);          temporarily_use_uid(pw);
         /*          /*
          * Quick check: if the user has no .shosts or .rhosts files, return           * Quick check: if the user has no .shosts or .rhosts files, return
          * failure immediately without doing costly lookups from name           * failure immediately without doing costly lookups from name
Line 223 
Line 223 
                 return 0;                  return 0;
         }          }
         /* Temporarily use the user's uid. */          /* Temporarily use the user's uid. */
         temporarily_use_uid(pw->pw_uid);          temporarily_use_uid(pw);
   
         /* Check all .rhosts files (currently .shosts and .rhosts). */          /* Check all .rhosts files (currently .shosts and .rhosts). */
         for (rhosts_file_index = 0; rhosts_files[rhosts_file_index];          for (rhosts_file_index = 0; rhosts_files[rhosts_file_index];

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