summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2002-01-09 13:49:28 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2002-01-09 13:49:28 +0000
commitfaffd078b7d1f3e94b1f79c60c1b6c35725caa6a (patch)
treef6b6628d6d7d96b8ec31aeeed724871df296c436 /usr.bin
parent02d174340245e6e2912a57781bd3522cea6dd3e4 (diff)
append \n only for public keys
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/ssh-keygen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c
index e1d8d57d5a3..46c9b415353 100644
--- a/usr.bin/ssh/ssh-keygen.c
+++ b/usr.bin/ssh/ssh-keygen.c
@@ -12,7 +12,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh-keygen.c,v 1.89 2001/12/29 21:56:01 stevesk Exp $");
+RCSID("$OpenBSD: ssh-keygen.c,v 1.90 2002/01/09 13:49:27 markus Exp $");
#include <openssl/evp.h>
#include <openssl/pem.h>
@@ -350,7 +350,8 @@ do_convert_from_ssh2(struct passwd *pw)
exit(1);
}
key_free(k);
- fprintf(stdout, "\n");
+ if (!private)
+ fprintf(stdout, "\n");
fclose(fp);
exit(0);
}