gpg: drop import-clean from default keyserver import options
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 15 Jul 2019 20:24:35 +0000 (16:24 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 1 Jul 2022 16:06:43 +0000 (17:06 +0100)
* g10/gpg.c (main): drop IMPORT_CLEAN from the
default opt.keyserver_options.import_options
* doc/gpg.texi: reflect this change in the documentation

Given that SELF_SIGS_ONLY is already set, it's not clear what
additional benefit IMPORT_CLEAN provides.  Furthermore, IMPORT_CLEAN
means that receiving an OpenPGP certificate from a keyserver will
potentially delete data that is otherwise held in the local keyring,
which is surprising to users who expect retrieval from the keyservers
to be purely additive.

GnuPG-Bug-Id: 4628
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
(cherry picked from commit 84bce011aaa2db19f10c1f763110e840c7b7019f)

Gbp-Pq: Topic keyserver-cleanup
Gbp-Pq: Name gpg-drop-import-clean-from-default-keyserver-import-optio.patch

doc/gpg.texi
g10/gpg.c

index c8fb241acabd3014c3e2e90d51f07f8c3dc93b11..0f135897a15c9299c447aa28aa5e853977cd14b7 100644 (file)
@@ -1907,7 +1907,7 @@ are available for all keyserver types, some common options are:
 
 @end table
 
-The default list of options is: "self-sigs-only, import-clean,
+The default list of options is: "self-sigs-only,
 repair-keys, repair-pks-subkey-bug, export-attributes,
 honor-pka-record".
 
index 6e5e901712c45ff62d02d7718d997f90cc0a7e97..f05a493e171fec4889cfa77a7d606b7baf9d4d9a 100644 (file)
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -2374,8 +2374,7 @@ main (int argc, char **argv)
     opt.export_options = EXPORT_ATTRIBUTES;
     opt.keyserver_options.import_options = (IMPORT_REPAIR_KEYS
                                            | IMPORT_REPAIR_PKS_SUBKEY_BUG
-                                            | IMPORT_SELF_SIGS_ONLY
-                                            | IMPORT_CLEAN);
+                                            | IMPORT_SELF_SIGS_ONLY);
     opt.keyserver_options.export_options = EXPORT_ATTRIBUTES;
     opt.keyserver_options.options = KEYSERVER_HONOR_PKA_RECORD;
     opt.verify_options = (LIST_SHOW_UID_VALIDITY