diff options
author | Werner Koch <[email protected]> | 2023-04-18 06:04:05 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2023-04-18 06:04:48 +0000 |
commit | ba67fea5b9bb093f446dbd1ed2f88248d269d495 (patch) | |
tree | 89737c8ffd8a88c26ee95314039e3552a875fdb6 /common/homedir.c | |
parent | gpg: Allow overridden key import when stub exists. (diff) | |
download | gnupg-ba67fea5b9bb093f446dbd1ed2f88248d269d495.tar.gz gnupg-ba67fea5b9bb093f446dbd1ed2f88248d269d495.zip |
gpgtar: Read common.conf for the log-file option.
* common/util.h (GNUPG_MODULE_NAME_GPGTAR): New.
* common/homedir.c (gnupg_module_name): Add it.
* tools/gpgtar.c: Include comopt.h.
(enum cmd_and_opt_values): Add oDebug.
(opts): Add --debug.
(any_debug): New.
(main): Parse common.conf.
--
Having a way to see the output of gpgtar is often useful for
debugging. The only effect of the debug option is to show whether
common.conf was read.
Diffstat (limited to 'common/homedir.c')
-rw-r--r-- | common/homedir.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/homedir.c b/common/homedir.c index 091964fc1..66e79e35c 100644 --- a/common/homedir.c +++ b/common/homedir.c @@ -1657,6 +1657,9 @@ gnupg_module_name (int which) case GNUPG_MODULE_NAME_CARD: X(bindir, "tools", "gpg-card"); + case GNUPG_MODULE_NAME_GPGTAR: + X(bindir, "tools", "gpgtar"); + default: BUG (); } |