1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

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.
This commit is contained in:
Werner Koch 2022-04-25 12:03:45 +02:00
parent 0f8623d518
commit ca5d5142c6
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
4 changed files with 11 additions and 7 deletions

View file

@ -173,7 +173,7 @@ static gpgrt_opt_t opts[] = {
ARGPARSE_c (aServer, "server", N_("run in server mode (foreground)") ),
ARGPARSE_c (aDaemon, "daemon", N_("run in daemon mode (background)") ),
#ifndef HAVE_W32_SYSTEM
ARGPARSE_c (aSupervised, "supervised", N_("run in supervised mode")),
ARGPARSE_c (aSupervised, "supervised", "@"),
#endif
ARGPARSE_c (aListCRLs, "list-crls", N_("list the contents of the CRL cache")),
ARGPARSE_c (aLoadCRL, "load-crl", N_("|FILE|load CRL from FILE into cache")),
@ -1275,6 +1275,9 @@ main (int argc, char **argv)
#ifndef HAVE_W32_SYSTEM
else if (cmd == aSupervised)
{
if (!opt.quiet)
log_info(_("WARNING: \"%s\" is a deprecated option\n"), "--supervised");
/* In supervised mode, we expect file descriptor 3 to be an
already opened, listening socket.