Home GnuPG
Diffusion GnuPG e051c279216e

gpg: set full --dry-run when used with --show-keys
e051c279216eUnpublished

Unpublished Commit ยท Learn More

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

Description

gpg: set full --dry-run when used with --show-keys

* g10/gpg.c (main): ensure that opt.dry_run matches
opt.import_options[IMPORT_DRY_RUN].

It seems that the import_options IMPORT_DRY_RUN bit doesn't have the
same power as the opt.dry_run bit itself. When one is set or cleared
by command-line options or other option parsing, we should ensure that
the other is also set or cleared.

It would probably be cleaner to have just a single bit, stored in a
single place, but that kind of overhaul is beyond the scope of this
bugfix.

  • GnuPG-Bug-id: T4017
  • Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>

Details

Provenance
dkgAuthored on Jun 12 2018, 12:33 AM
Parents
rGdc96fd883571: doc: Mention new command --show-keys in the 2.2.7 NEWS.
Branches
Unknown
Tags
Unknown
References
fix-T4017