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

Diff for /src/usr.bin/ssh/readconf.c between version 1.275 and 1.276

version 1.275, 2017/04/30 23:18:22 version 1.276, 2017/05/20 02:35:47
Line 423 
Line 423 
   
         if (dir == NULL) /* no dir, filename is absolute */          if (dir == NULL) /* no dir, filename is absolute */
                 path = xstrdup(filename);                  path = xstrdup(filename);
         else          else if (xasprintf(&path, "%s%s", dir, filename) >= PATH_MAX)
                 (void)xasprintf(&path, "%.100s%.100s", dir, filename);                  fatal("Identity file path %s too long", path);
   
         /* Avoid registering duplicates */          /* Avoid registering duplicates */
         for (i = 0; i < options->num_identity_files; i++) {          for (i = 0; i < options->num_identity_files; i++) {

Legend:
Removed from v.1.275  
changed lines
  Added in v.1.276