diff options
author | Werner Koch <[email protected]> | 2024-11-06 15:09:18 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-11-07 09:51:04 +0000 |
commit | b389e04ef5260628bfd8002e20873114a3d4fa4b (patch) | |
tree | 2a957f2fd163cddb85f479d77cc47704984fe3f9 /tools/gpgtar.c | |
parent | scd: Fix getinfo active_apps. (diff) | |
download | gnupg-b389e04ef5260628bfd8002e20873114a3d4fa4b.tar.gz gnupg-b389e04ef5260628bfd8002e20873114a3d4fa4b.zip |
gpgtar: Use log-file from common.conf only in --batch mode.
* tools/gpgtar.c (main): Do it.
--
This makes the interactive use of gpgtar more convenient and is more
aligned to what gpg and gpgsm do.
Diffstat (limited to 'tools/gpgtar.c')
-rw-r--r-- | tools/gpgtar.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/gpgtar.c b/tools/gpgtar.c index 3e4d135f0..4a169ac17 100644 --- a/tools/gpgtar.c +++ b/tools/gpgtar.c @@ -496,8 +496,11 @@ main (int argc, char **argv) if (log_get_errorcount (0)) exit (2); - /* Get a log file from common.conf. */ - if (!parse_comopt (GNUPG_MODULE_NAME_GPGTAR, any_debug) && comopt.logfile) + /* Get a log file from common.conf but use it only in --batch mode + * because people expect to see the verbose output here even if they + * have a log-file in their common.conf. */ + if (!parse_comopt (GNUPG_MODULE_NAME_GPGTAR, any_debug) && comopt.logfile + && opt.batch) log_set_file (comopt.logfile); /* Print a warning if an argument looks like an option. */ |