From: Peter Palfrader Date: Fri, 19 Sep 2008 17:06:30 +0000 (+0200) Subject: Do not throw an exception of verifying the .users file cases gpg to exit with a non... X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=210d73cb57d883fa9f852a08919d141c304ae1cb;p=pwstore Do not throw an exception of verifying the .users file cases gpg to exit with a non-zero status --- diff --git a/pws b/pws index df7d0bb..db0046e 100755 --- 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