gpg: Workaround for junk after --trusted-key.
authorWerner Koch <wk@gnupg.org>
Thu, 28 Sep 2017 12:10:12 +0000 (14:10 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 28 Sep 2017 12:10:12 +0000 (14:10 +0200)
commitb509d81cab030cca6abf0d878e1fc884eda344e6
tree520d240f68e6c0c7cd4f1a5771314ef0492a8d56
parente725c4d65335d18dea6b855726ee7c57afd4a60a
gpg: Workaround for junk after --trusted-key.

* g10/trust.c (register_trusted_key): Cut off everthing starting as a
hash sign.
--

This problem is fallout from
commit f99830b72812395da5451152bdd2f2d90a7cb7fb
which fixes
GnuPG-bug-id: 1206

The same could happen with other options taking keyids but we won't
change that because a trailing '#' does not indicate a comment.  So
this is really only a workaround and eventually we will
deprecate --trusted-key anyway or require a fingerprint as a value.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/trust.c