summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2000-12-22 16:49:40 +0000
committermarkus <markus@openbsd.org>2000-12-22 16:49:40 +0000
commit5d868bbf0a2710da1a3c8d5dfc79da1650e1afee (patch)
treec82d1feb6708f11daf27a639233467abd6c92532
parentrevoke root priv earlier. use strl*. (diff)
downloadwireguard-openbsd-5d868bbf0a2710da1a3c8d5dfc79da1650e1afee.tar.xz
wireguard-openbsd-5d868bbf0a2710da1a3c8d5dfc79da1650e1afee.zip
fix ssh-keygen -x -t type > file; from Roumen.Petrov@skalasoft.com
-rw-r--r--usr.bin/ssh/ssh-keygen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c
index f3d512cb92a..ec70c5620e3 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.36 2000/12/19 23:17:58 markus Exp $");
+RCSID("$OpenBSD: ssh-keygen.c,v 1.37 2000/12/22 16:49:40 markus Exp $");
#include <openssl/evp.h>
#include <openssl/pem.h>
@@ -97,8 +97,8 @@ ask_filename(struct passwd *pw, const char *prompt)
break;
}
snprintf(identity_file, sizeof(identity_file), "%s/%s", pw->pw_dir, name);
- printf("%s (%s): ", prompt, identity_file);
- fflush(stdout);
+ fprintf(stderr, "%s (%s): ", prompt, identity_file);
+ fflush(stderr);
if (fgets(buf, sizeof(buf), stdin) == NULL)
exit(1);
if (strchr(buf, '\n'))