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

Diff for /src/usr.bin/ssh/auth.c between version 1.41.2.3 and 1.41.2.4

version 1.41.2.3, 2002/06/26 15:30:37 version 1.41.2.4, 2002/10/11 14:51:51
Line 323 
Line 323 
   
 /*  /*
  * Check a given file for security. This is defined as all components   * Check a given file for security. This is defined as all components
  * of the path to the file must either be owned by either the owner of   * of the path to the file must be owned by either the owner of
  * of the file or root and no directories must be group or world writable.   * of the file or root and no directories must be group or world writable.
  *   *
  * XXX Should any specific check be done for sym links ?   * XXX Should any specific check be done for sym links ?
Line 407 
Line 407 
         struct passwd *pw;          struct passwd *pw;
   
         pw = getpwnam(user);          pw = getpwnam(user);
         if (pw == NULL || !allowed_user(pw))          if (pw == NULL) {
                   log("Illegal user %.100s from %.100s",
                       user, get_remote_ipaddr());
                   return (NULL);
           }
           if (!allowed_user(pw))
                 return (NULL);                  return (NULL);
 #ifdef HAVE_LOGIN_CAP  #ifdef HAVE_LOGIN_CAP
         if ((lc = login_getclass(pw->pw_class)) == NULL) {          if ((lc = login_getclass(pw->pw_class)) == NULL) {

Legend:
Removed from v.1.41.2.3  
changed lines
  Added in v.1.41.2.4