From: Peter Palfrader Date: Fri, 19 Sep 2008 16:56:16 +0000 (+0200) Subject: Prevent gpg from fetching keys because it tries to verify a signature when LSing... X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1086cc8638ca783157f01eae38f3a46a7bc30cfc;p=pwstore Prevent gpg from fetching keys because it tries to verify a signature when LSing a file --- diff --git a/pws b/pws index cccb42c..df7d0bb 100755 --- 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)