summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2009-06-08 10:15:34 +0200
committerWerner Koch <wk@gnupg.org>2009-06-08 10:15:34 +0200
commit2528eb4776b5b1cad9128e8fde524cb64c70d609 (patch)
treeb6fbefe5528e1ce33e8c1e90fe5d7d3158f91d6b /tools
parentFix last change (diff)
downloadgnupg2-2528eb4776b5b1cad9128e8fde524cb64c70d609.tar.xz
gnupg2-2528eb4776b5b1cad9128e8fde524cb64c70d609.zip
Help against closed standard descriptors.
Diffstat (limited to 'tools')
-rw-r--r--tools/ChangeLog4
-rw-r--r--tools/gpgconf.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/tools/ChangeLog b/tools/ChangeLog
index bc48ef80d..fa5c491d7 100644
--- a/tools/ChangeLog
+++ b/tools/ChangeLog
@@ -1,3 +1,7 @@
+2009-06-08 Werner Koch <wk@g10code.com>
+
+ * gpgconf.c (main): Call gnupg_reopen_std. Should fix bug#1072.
+
2009-05-19 Werner Koch <wk@g10code.com>
* watchgnupg.c: Include jnlib/mischelp.h if required.
diff --git a/tools/gpgconf.c b/tools/gpgconf.c
index 6f1fcbb54..1656a402e 100644
--- a/tools/gpgconf.c
+++ b/tools/gpgconf.c
@@ -25,6 +25,7 @@
#include "gpgconf.h"
#include "i18n.h"
+#include "sysutils.h"
/* Constants to identify the commands and options. */
enum cmd_and_opt_values
@@ -145,6 +146,7 @@ main (int argc, char **argv)
enum cmd_and_opt_values cmd = 0;
FILE *outfp = NULL;
+ gnupg_reopen_std ("gpgconf");
set_strusage (my_strusage);
log_set_prefix ("gpgconf", 1);