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

Diff for /src/usr.bin/ssh/ssh.c between version 1.366 and 1.367

version 1.366, 2011/09/23 07:45:05 version 1.367, 2011/10/18 05:15:28
Line 841 
Line 841 
          * Now that we are back to our own permissions, create ~/.ssh           * Now that we are back to our own permissions, create ~/.ssh
          * directory if it doesn't already exist.           * directory if it doesn't already exist.
          */           */
         r = snprintf(buf, sizeof buf, "%s%s%s", pw->pw_dir,          if (config == NULL) {
             strcmp(pw->pw_dir, "/") ? "/" : "", _PATH_SSH_USER_DIR);                  r = snprintf(buf, sizeof buf, "%s%s%s", pw->pw_dir,
         if (r > 0 && (size_t)r < sizeof(buf) && stat(buf, &st) < 0)                      strcmp(pw->pw_dir, "/") ? "/" : "", _PATH_SSH_USER_DIR);
                 if (mkdir(buf, 0700) < 0)                  if (r > 0 && (size_t)r < sizeof(buf) && stat(buf, &st) < 0)
                         error("Could not create directory '%.200s'.", buf);                          if (mkdir(buf, 0700) < 0)
                                   error("Could not create directory '%.200s'.",
                                       buf);
           }
   
         /* load options.identity_files */          /* load options.identity_files */
         load_public_identity_files();          load_public_identity_files();

Legend:
Removed from v.1.366  
changed lines
  Added in v.1.367