Home GnuPG
Diffusion GnuPG 8ea49cf513e1

jnlib: Add meta option ignore-invalid-option.
8ea49cf513e1Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

jnlib: Add meta option ignore-invalid-option.

* jnlib/argparse.c (iio_item_def_s, IIO_ITEM_DEF): New.
(initialize): Init field IIO_LIST.
(ignore_invalid_option_p): New.
(ignore_invalid_option_add): New.
(ignore_invalid_option_clear): New.
(optfile_parse): Implement meta option.

This option is currently of no use. However, as soon as it has been
deployed in all stable versions of GnuPG, it will allow the use of the
same configuration file with an old and a new version of GnuPG. For
example: If a new version implements the option "foobar", and a user
uses it in gpg.conf, an old version of gpg would bail out with the
error "invalid option". To avoid that the following line can be put
above that option in gpg.conf

ignore-invalid-option foobar

This meta option may be given several times or several option names
may be given as arguments (space delimited). Note that this option is
not available on the command line.

(cherry-picked from commit 41d564333d35c923f473aa90625d91f8fe18cd0b)

Details

Provenance
wernerAuthored on Dec 18 2012, 6:06 PM
Parents
rG732f3d1d4786: No point in defaulting try-dns-srv to on if we don't have SRV support.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG8ea49cf513e1: jnlib: Add meta option ignore-invalid-option. (authored by Werner Koch <wk@gnupg.org>).Dec 18 2012, 6:31 PM