mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
agent: Print a warning for obsolete options.
* g10/misc.c (obsolete_scdaemon_option): Move to * common/miscellaneous.c (obsolete_option): ... here. * agent/gpg-agent.c (main): Use obsolete_option for the 3 obsolete options. -- GnuPG-bug-id: 2016 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
685b782a18
commit
010d26a85b
5 changed files with 24 additions and 18 deletions
|
@ -908,8 +908,10 @@ main (int argc, char **argv )
|
|||
case oXauthority: default_xauthority = xstrdup (pargs.r.ret_str);
|
||||
break;
|
||||
|
||||
case oUseStandardSocket: /* dummy */ break;
|
||||
case oNoUseStandardSocket: /* dummy */ break;
|
||||
case oUseStandardSocket:
|
||||
case oNoUseStandardSocket:
|
||||
obsolete_option (configname, configlineno, "use-standard-socket");
|
||||
break;
|
||||
|
||||
case oFakedSystemTime:
|
||||
{
|
||||
|
@ -945,7 +947,9 @@ main (int argc, char **argv )
|
|||
/* Only used by the first stage command line parser. */
|
||||
break;
|
||||
|
||||
case oWriteEnvFile: /* dummy */ break;
|
||||
case oWriteEnvFile:
|
||||
obsolete_option (configname, configlineno, "write-env-file");
|
||||
break;
|
||||
|
||||
default : pargs.err = configfp? 1:2; break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue