]> err.no Git - pwstore/commitdiff
Do not throw an exception of verifying the .users file cases gpg to exit with a non...
authorPeter Palfrader <peter@palfrader.org>
Fri, 19 Sep 2008 17:06:30 +0000 (19:06 +0200)
committerPeter Palfrader <peter@palfrader.org>
Fri, 19 Sep 2008 17:06:30 +0000 (19:06 +0200)
pws

diff --git a/pws b/pws
index df7d0bbf80bf89524498a34d494b9296921dbc34..db0046e47954f966c3327ffb09ae99373f587e13 100755 (executable)
--- a/pws
+++ b/pws
@@ -219,7 +219,7 @@ class GroupConfig
       trusted.push line
     end
 
-    (outtxt, stderrtxt, statustxt, exitstatus) = GnuPG.gpgcall(content, %w{}, true)
+    (outtxt, stderrtxt, statustxt, exitstatus) = GnuPG.gpgcall(content, %w{})
     goodsig = false
     validsig = nil
     statustxt.split("\n").each do |line|
@@ -240,6 +240,11 @@ class GroupConfig
       exit(1)
     end
 
+    if not exitstatus==0
+      STDERR.puts "gpg verify failed for .users file"
+      exit(1)
+    end
+
     return outtxt
   end