diff options
author | Werner Koch <[email protected]> | 2022-04-25 10:03:45 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2022-04-25 10:03:45 +0000 |
commit | ca5d5142c6d6eaba4572a086f8473e4aebdd3f9e (patch) | |
tree | 9545b869334817f900c0816574e2ca962d96eefb /agent/gpg-agent.c | |
parent | gpg: Emit an ERROR status as hint for a bad passphrase. (diff) | |
download | gnupg-ca5d5142c6d6eaba4572a086f8473e4aebdd3f9e.tar.gz gnupg-ca5d5142c6d6eaba4572a086f8473e4aebdd3f9e.zip |
Deprecate the --supervised options.
* agent/gpg-agent.c (main): Mark --supervised as deprecated.
* dirmngr/dirmngr.c (main): Ditto.
--
The supervised thing causes more trouble than it pretends to solve.
Diffstat (limited to 'agent/gpg-agent.c')
-rw-r--r-- | agent/gpg-agent.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c index 2690c0806..d2ea91307 100644 --- a/agent/gpg-agent.c +++ b/agent/gpg-agent.c @@ -167,7 +167,7 @@ static gpgrt_opt_t opts[] = { ARGPARSE_s_n (oDaemon, "daemon", N_("run in daemon mode (background)")), ARGPARSE_s_n (oServer, "server", N_("run in server mode (foreground)")), #ifndef HAVE_W32_SYSTEM - ARGPARSE_s_n (oSupervised, "supervised", N_("run in supervised mode")), + ARGPARSE_s_n (oSupervised, "supervised", "@"), #endif ARGPARSE_s_n (oNoDetach, "no-detach", N_("do not detach from the console")), ARGPARSE_s_n (oSh, "sh", N_("sh-style command output")), @@ -1378,6 +1378,9 @@ main (int argc, char **argv) agent_exit (0); } + if (is_supervised && !opt.quiet) + log_info(_("WARNING: \"%s\" is a deprecated option\n"), "--supervised"); + if (is_supervised) ; else if (!opt.extra_socket) |