summaryrefslogtreecommitdiffstats
path: root/ssh-keygen.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2013-02-12 01:03:36 +0100
committerDamien Miller <djm@mindrot.org>2013-02-12 01:03:36 +0100
commit78d22713c79da46b80eceec02411563be3c65e71 (patch)
tree92c7f1b081de7bbe465aadf132b52b5c4be23c64 /ssh-keygen.c
parent - markus@cvs.openbsd.org 2013/02/10 21:19:34 (diff)
downloadopenssh-78d22713c79da46b80eceec02411563be3c65e71.tar.xz
openssh-78d22713c79da46b80eceec02411563be3c65e71.zip
- djm@cvs.openbsd.org 2013/02/10 23:32:10
[ssh-keygen.c] append to moduli file when screening candidates rather than overwriting. allows resumption of interrupted screen; patch from Christophe Garault in bz#1957; ok dtucker@
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 21c7f25ea..d1a205e18 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keygen.c,v 1.224 2013/01/18 07:59:46 jmc Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.225 2013/02/10 23:32:10 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2508,7 +2508,7 @@ main(int argc, char **argv)
if (do_screen_candidates) {
FILE *in;
- FILE *out = fopen(out_file, "w");
+ FILE *out = fopen(out_file, "a");
if (have_identity && strcmp(identity_file, "-") != 0) {
if ((in = fopen(identity_file, "r")) == NULL) {