[svn] GnuPG - r5039 - trunk/tools

svn author wk cvs at cvs.gnupg.org
Mon Jun 8 10:15:34 CEST 2009


Author: wk
Date: 2009-06-08 10:15:34 +0200 (Mon, 08 Jun 2009)
New Revision: 5039

Modified:
   trunk/tools/ChangeLog
   trunk/tools/gpgconf.c
Log:
Help against closed standard descriptors.


Modified: trunk/tools/ChangeLog
===================================================================
--- trunk/tools/ChangeLog	2009-06-05 20:51:52 UTC (rev 5038)
+++ trunk/tools/ChangeLog	2009-06-08 08:15:34 UTC (rev 5039)
@@ -1,3 +1,7 @@
+2009-06-08  Werner Koch  <wk at g10code.com>
+
+	* gpgconf.c (main): Call gnupg_reopen_std.  Should fix bug#1072.
+
 2009-05-19  Werner Koch  <wk at g10code.com>
 
 	* watchgnupg.c: Include jnlib/mischelp.h if required.

Modified: trunk/tools/gpgconf.c
===================================================================
--- trunk/tools/gpgconf.c	2009-06-05 20:51:52 UTC (rev 5038)
+++ trunk/tools/gpgconf.c	2009-06-08 08:15:34 UTC (rev 5039)
@@ -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 @@
   enum cmd_and_opt_values cmd = 0;
   FILE *outfp = NULL;
 
+  gnupg_reopen_std ("gpgconf");
   set_strusage (my_strusage);
   log_set_prefix ("gpgconf", 1);
 




More information about the Gnupg-commits mailing list