]> err.no Git - pwstore/commitdiff
Prevent gpg from fetching keys because it tries to verify a signature when LSing...
authorPeter Palfrader <peter@palfrader.org>
Fri, 19 Sep 2008 16:56:16 +0000 (18:56 +0200)
committerPeter Palfrader <peter@palfrader.org>
Fri, 19 Sep 2008 16:56:16 +0000 (18:56 +0200)
pws

diff --git a/pws b/pws
index cccb42c2214b7ce913319a9bcbd9c6eea15bebe9..df7d0bbf80bf89524498a34d494b9296921dbc34 100755 (executable)
--- a/pws
+++ b/pws
@@ -402,7 +402,7 @@ class EncryptedFile
     end
     @accessible = true
     @encrypted_content = File.read(filename)
-    (outtxt, stderrtxt, statustxt) = GnuPG.gpgcall(@encrypted_content, %w{--with-colons --no-default-keyring --secret-keyring=/dev/null --keyring=/dev/null})
+    (outtxt, stderrtxt, statustxt) = GnuPG.gpgcall(@encrypted_content, %w{--with-colons --no-options --no-default-keyring --secret-keyring=/dev/null --keyring=/dev/null})
     @encrypted = !(statustxt =~ /\[GNUPG:\] NODATA/)
     if @encrypted
       @readers = EncryptedFile.list_readers(statustxt)