summaryrefslogtreecommitdiff
path: root/ssh-keygen.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r--ssh-keygen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c
index b38ebfb91..8a03f0d8d 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -7,7 +7,7 @@
7 */ 7 */
8 8
9#include "includes.h" 9#include "includes.h"
10RCSID("$OpenBSD: ssh-keygen.c,v 1.28 2000/07/07 03:55:04 todd Exp $"); 10RCSID("$OpenBSD: ssh-keygen.c,v 1.29 2000/07/15 04:01:37 djm Exp $");
11 11
12#include <openssl/evp.h> 12#include <openssl/evp.h>
13#include <openssl/pem.h> 13#include <openssl/pem.h>
@@ -660,7 +660,7 @@ main(int ac, char **av)
660 snprintf(dotsshdir, sizeof dotsshdir, "%s/%s", pw->pw_dir, SSH_USER_DIR); 660 snprintf(dotsshdir, sizeof dotsshdir, "%s/%s", pw->pw_dir, SSH_USER_DIR);
661 if (strstr(identity_file, dotsshdir) != NULL && 661 if (strstr(identity_file, dotsshdir) != NULL &&
662 stat(dotsshdir, &st) < 0) { 662 stat(dotsshdir, &st) < 0) {
663 if (mkdir(dotsshdir, 0755) < 0) 663 if (mkdir(dotsshdir, 0700) < 0)
664 error("Could not create directory '%s'.", dotsshdir); 664 error("Could not create directory '%s'.", dotsshdir);
665 else if (!quiet) 665 else if (!quiet)
666 printf("Created directory '%s'.\n", dotsshdir); 666 printf("Created directory '%s'.\n", dotsshdir);