From d426ed66ac043e442649a8a2bc7eac6753a5bf58 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 1 Feb 2022 15:13:13 +0100 Subject: [PATCH] gpg: Set --verbose and clear --quiet in debug mode. * g10/gpg.c (set_debug): Tweak options. -- --- g10/gpg.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; }