aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-03-06 09:00:37 +0000
committerWerner Koch <[email protected]>2024-03-06 10:44:19 +0000
commit5999d95e04c478b0bd3dd3a8a21fc5ebb5778cb8 (patch)
tree4ca942ff3c510e3df2748cb1d286b3ecc5e73813
parentgpg: Fix mixed invocation with --trusted-keys and --no-options. (diff)
downloadgnupg-5999d95e04c478b0bd3dd3a8a21fc5ebb5778cb8.tar.gz
gnupg-5999d95e04c478b0bd3dd3a8a21fc5ebb5778cb8.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.
-rw-r--r--tools/gpg-wks-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gpg-wks-client.c b/tools/gpg-wks-client.c
index 4e860096c..6f593ff6b 100644
--- a/tools/gpg-wks-client.c
+++ b/tools/gpg-wks-client.c
@@ -1978,7 +1978,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;