aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-06-01 12:13:31 +0000
committerWerner Koch <[email protected]>2010-06-01 12:13:31 +0000
commit9017b84423f71ea460b96481be8e3f0528a38f62 (patch)
treeb68270e1c0aa6b6b2f95e545706c1d2b01f02096
parentFix bug 1179 (diff)
downloadgnupg-9017b84423f71ea460b96481be8e3f0528a38f62.tar.gz
gnupg-9017b84423f71ea460b96481be8e3f0528a38f62.zip
Ignore some GnuPG-2 only options.
-rw-r--r--NEWS1
-rw-r--r--g10/ChangeLog5
-rw-r--r--g10/gpg.c9
3 files changed, 14 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 72aa4e2dd..7090df2ec 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ Noteworthy changes in version 1.4.11
* Bug fixes.
+
Noteworthy changes in version 1.4.10 (2009-09-02)
-------------------------------------------------
diff --git a/g10/ChangeLog b/g10/ChangeLog
index 3d4d066b3..5419e08b3 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-01 Werner Koch <[email protected]>
+
+ * gpg.c (main): Add dummy option --debug-level and ignore
+ --log-file if a socket prefix is given.
+
2010-05-12 Werner Koch <[email protected]>
* armor.c (radix64_read): Change fix 2006-04-08 to fix bug#1179.
diff --git a/g10/gpg.c b/g10/gpg.c
index b704595fc..0142168e0 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -188,6 +188,7 @@ enum cmd_and_opt_values
oOptions,
oDebug,
oDebugAll,
+ oDebugLevel,
oDebugCCIDDriver,
oStatusFD,
oStatusFile,
@@ -513,6 +514,7 @@ static ARGPARSE_OPTS opts[] = {
{ oOptions, "options", 2, "@"},
{ oDebug, "debug" ,4|16, "@"},
{ oDebugAll, "debug-all" ,0, "@"},
+ { oDebugLevel, "debug-level" ,0, "@"},
{ oStatusFD, "status-fd" ,1, "@"},
{ oStatusFile, "status-file" ,2, "@"},
{ oAttributeFD, "attribute-fd" ,1, "@" },
@@ -2202,6 +2204,7 @@ main (int argc, char **argv )
break;
case oDebug: opt.debug |= pargs.r.ret_ulong; break;
case oDebugAll: opt.debug = ~0; break;
+ case oDebugLevel: break; /* Not supported. */
case oDebugCCIDDriver:
#if defined(ENABLE_CARD_SUPPORT) && defined(HAVE_LIBUSB)
ccid_set_debug_level (ccid_set_debug_level (1)+1);
@@ -2224,7 +2227,11 @@ main (int argc, char **argv )
iobuf_translate_file_handle (pargs.r.ret_int, 1));
break;
case oLoggerFile:
- log_set_logfile( NULL, open_info_file (pargs.r.ret_str, 1) );
+ /* Our log code does not support the socket feature. Thus
+ we ignore such log files to avoid problems with
+ gpg.conf files which are also used by gpg2. */
+ if (strncmp (pargs.r.ret_str, "socket://", 9))
+ log_set_logfile( NULL, open_info_file (pargs.r.ret_str, 1) );
break;
case oWithFingerprint: