From 5335eb0fbeb3600dfcffe9082b9c4f88ad21333b Mon Sep 17 00:00:00 2001 From: joey <> Date: Sun, 23 Jan 2005 09:45:50 +0000 Subject: [PATCH] Patch by Andreas Barth: added --secret-keyring /dev/null This is required for ud-mailgate to work with sarge as well. The semantics of the option --no-default-keyring of GnuPG has been changed between woody and sarge: --no-default-keyring Do not add the default keyrings to the list of keyrings. Note that GnuPG will not operate without any keyrings, so if you use this option and do not provide alternate keyrings via --keyring or --secret-keyring, then GnuPG will still use the default public or secret keyrings. (and won't work if they don't exist) --- userdir_gpg.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/userdir_gpg.py b/userdir_gpg.py index 1f3b1cb..9f494fb 100644 --- a/userdir_gpg.py +++ b/userdir_gpg.py @@ -31,8 +31,12 @@ import rfc822, time, fcntl, FCNTL, anydbm # General GPG options GPGPath = "gpg" # "--load-extension","rsa", -GPGBasicOptions = ["--no-options","--batch", - "--no-default-keyring","--always-trust"]; +GPGBasicOptions = [ + "--no-options", + "--batch", + "--no-default-keyring", + "--secret-keyring", "/dev/null", + "--always-trust"]; GPGKeyRings = []; GPGSigOptions = ["--output","-"]; GPGSearchOptions = ["--dry-run","--with-colons","--fingerprint"]; -- 2.20.1