diff options
author | Werner Koch <wk@gnupg.org> | 2024-03-06 10:00:37 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2024-03-06 10:00:37 +0100 |
commit | 37cc255e49427dfaaa9907fe789dc6e84484d532 (patch) | |
tree | 1b36e996f7cd7d9084926c3edfa901ab58eb2481 /tools | |
parent | gpg: Fix mixed invocation with --trusted-keys and --no-options. (diff) | |
download | gnupg2-37cc255e49427dfaaa9907fe789dc6e84484d532.tar.xz gnupg2-37cc255e49427dfaaa9907fe789dc6e84484d532.zip |
wks: Make gpg-wks-client --mirror work w/o args.
* tools/gpg-wks-client.c (mirror_one_key): Test for no domain
specified.
--
The code did not really work if no domain was given. It worked but
filtered out all keys so that no key was actually exported.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gpg-wks-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gpg-wks-client.c b/tools/gpg-wks-client.c index c172fcc77..f02484c94 100644 --- a/tools/gpg-wks-client.c +++ b/tools/gpg-wks-client.c @@ -2026,7 +2026,7 @@ mirror_one_key (estream_t key) continue; /* No mail box or already processed. */ if (uid->expired) continue; - if (!domain_matches_mbox (domain, uid->mbox)) + if (*domain && !domain_matches_mbox (domain, uid->mbox)) continue; /* We don't want this one. */ if (is_in_blacklist (uid->mbox)) continue; |