diff options
author | Damien Miller <djm@mindrot.org> | 2000-07-15 14:14:16 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-07-15 14:14:16 +1000 |
commit | be484b5d9889ca636fecdf1f6b73ddfbe4cce3c9 (patch) | |
tree | 8b1023f666bebd274c08fe579a61c70a8a66f283 /ssh-keygen.c | |
parent | 055dc369837e1bde0f84a7ecfe669e4e44f10db9 (diff) |
- (djm) OpenBSD CVS updates
- provos@cvs.openbsd.org 2000/07/13 16:53:22
[aux.c readconf.c servconf.c ssh.h]
allow multiple whitespace but only one '=' between tokens, bug report from
Ralf S. Engelschall <rse@engelschall.com> but different fix. okay deraadt@
- provos@cvs.openbsd.org 2000/07/13 17:14:09
[clientloop.c]
typo; todd@fries.net
- provos@cvs.openbsd.org 2000/07/13 17:19:31
[scp.c]
close can fail on AFS, report error; from Greg Hudson <ghudson@mit.edu>
- markus@cvs.openbsd.org 2000/07/14 16:59:46
[readconf.c servconf.c]
allow leading whitespace. ok niels
- djm@cvs.openbsd.org 2000/07/14 22:01:38
[ssh-keygen.c ssh.c]
Always create ~/.ssh with mode 700; ok Markus
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r-- | ssh-keygen.c | 4 |
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" |
10 | RCSID("$OpenBSD: ssh-keygen.c,v 1.28 2000/07/07 03:55:04 todd Exp $"); | 10 | RCSID("$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); |