From 1086cc8638ca783157f01eae38f3a46a7bc30cfc Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 19 Sep 2008 18:56:16 +0200 Subject: [PATCH] Prevent gpg from fetching keys because it tries to verify a signature when LSing a file --- pws | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5