aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2022-02-01 14:13:13 +0000
committerWerner Koch <[email protected]>2022-02-01 14:17:52 +0000
commitd426ed66ac043e442649a8a2bc7eac6753a5bf58 (patch)
tree936e3607cc71f854f8ac16165e65ec7f46c25ad3
parentssh: Fix adding an ed25519 key with a zero length comment. (diff)
downloadgnupg-d426ed66ac043e442649a8a2bc7eac6753a5bf58.tar.gz
gnupg-d426ed66ac043e442649a8a2bc7eac6753a5bf58.zip
gpg: Set --verbose and clear --quiet in debug mode.
* g10/gpg.c (set_debug): Tweak options. --
-rw-r--r--g10/gpg.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index 88e8f6646..eb1852109 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -1315,6 +1315,12 @@ set_debug (const char *level)
if (opt.debug)
parse_debug_flag (NULL, &opt.debug, debug_flags);
+
+ /* Make sure that we are --verbose in debug mode. */
+ if (opt.debug && !opt.verbose)
+ opt.verbose = 1;
+ if (opt.debug && opt.quiet)
+ opt.quiet = 0;
}