[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.98 and 1.99

version 1.98, 2012/12/02 20:34:09 version 1.99, 2012/12/14 05:26:43
Line 404 
Line 404 
 secure_filename(FILE *f, const char *file, struct passwd *pw,  secure_filename(FILE *f, const char *file, struct passwd *pw,
     char *err, size_t errlen)      char *err, size_t errlen)
 {  {
         char buf[MAXPATHLEN];  
         struct stat st;          struct stat st;
   
         /* check the open file to avoid races */          /* check the open file to avoid races */
         if (fstat(fileno(f), &st) < 0) {          if (fstat(fileno(f), &st) < 0) {
                 snprintf(err, errlen, "cannot stat file %s: %s",                  snprintf(err, errlen, "cannot stat file %s: %s",
                     buf, strerror(errno));                      file, strerror(errno));
                 return -1;                  return -1;
         }          }
         return auth_secure_path(file, &st, pw->pw_dir, pw->pw_uid, err, errlen);          return auth_secure_path(file, &st, pw->pw_dir, pw->pw_uid, err, errlen);

Legend:
Removed from v.1.98  
changed lines
  Added in v.1.99