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

Diff for /src/usr.bin/ssh/auth2-pubkeyfile.c between version 1.2 and 1.3

version 1.2, 2022/06/03 04:47:21 version 1.3, 2022/07/01 03:52:57
Line 448 
Line 448 
         FILE *f;          FILE *f;
   
         if ((fd = open(file, O_RDONLY|O_NONBLOCK)) == -1) {          if ((fd = open(file, O_RDONLY|O_NONBLOCK)) == -1) {
                 if (log_missing || errno != ENOENT)                  if (errno != ENOENT) {
                         debug("Could not open %s '%s': %s", file_type, file,                          logit("Could not open user '%s' %s '%s': %s",
                             strerror(errno));                              pw->pw_name, file_type, file, strerror(errno));
                   } else if (log_missing) {
                           debug("Could not open user '%s' %s '%s': %s",
                               pw->pw_name, file_type, file, strerror(errno));
                   }
                 return NULL;                  return NULL;
         }          }
   
Line 459 
Line 463 
                 return NULL;                  return NULL;
         }          }
         if (!S_ISREG(st.st_mode)) {          if (!S_ISREG(st.st_mode)) {
                 logit("User %s %s %s is not a regular file",                  logit("User '%s' %s '%s' is not a regular file",
                     pw->pw_name, file_type, file);                      pw->pw_name, file_type, file);
                 close(fd);                  close(fd);
                 return NULL;                  return NULL;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3