[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.56 and 1.57

version 1.56, 2022/02/23 21:21:49 version 1.57, 2022/12/09 00:17:40
Line 17 
Line 17 
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/stat.h>  #include <sys/stat.h>
   
   #include <errno.h>
 #include <fcntl.h>  #include <fcntl.h>
 #include <netgroup.h>  #include <netgroup.h>
 #include <pwd.h>  #include <pwd.h>
Line 279 
Line 280 
                 xasprintf(&path, "%s/%s",                  xasprintf(&path, "%s/%s",
                     pw->pw_dir, rhosts_files[rhosts_file_index]);                      pw->pw_dir, rhosts_files[rhosts_file_index]);
                 if (stat(path, &st) == -1) {                  if (stat(path, &st) == -1) {
                           debug3_f("stat %s: %s", path, strerror(errno));
                         free(path);                          free(path);
                         continue;                          continue;
                 }                  }

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.57