[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.128 and 1.129

version 1.128, 2018/05/25 07:11:01 version 1.129, 2018/06/01 03:33:53
Line 332 
Line 332 
 char *  char *
 expand_authorized_keys(const char *filename, struct passwd *pw)  expand_authorized_keys(const char *filename, struct passwd *pw)
 {  {
         char *file, ret[PATH_MAX];          char *file, uidstr[32], ret[PATH_MAX];
         int i;          int i;
   
           snprintf(uidstr, sizeof(uidstr), "%llu",
               (unsigned long long)pw->pw_uid);
         file = percent_expand(filename, "h", pw->pw_dir,          file = percent_expand(filename, "h", pw->pw_dir,
             "u", pw->pw_name, (char *)NULL);              "u", pw->pw_name, "U", uidstr, (char *)NULL);
   
         /*          /*
          * Ensure that filename starts anchored. If not, be backward           * Ensure that filename starts anchored. If not, be backward

Legend:
Removed from v.1.128  
changed lines
  Added in v.1.129