From 3171ca9b949b0412433f1f4afd3a85d1a955d91b Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 23 Aug 2024 09:19:55 +0200 Subject: [PATCH] gpg: Warn if a keyring is specified along with --use-keyboxd. * g10/gpg.c (main): Print the warning. -- GnuPG-bug-id: 7265 --- g10/gpg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/g10/gpg.c b/g10/gpg.c index aab884d02..8e38ec0af 100644 --- a/g10/gpg.c +++ b/g10/gpg.c @@ -3896,6 +3896,9 @@ main (int argc, char **argv) opt.keyboxd_program = comopt.keyboxd_program; comopt.keyboxd_program = NULL; } + if (opt.use_keyboxd && nrings) + log_info ("Note: Specified keyrings are ignored due to option \"%s\"\n", + "use-keyboxd"); if (comopt.no_autostart) opt.autostart = 0;