summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2014-01-10 14:34:03 +0000
committerMarc Espie <espie@cvs.openbsd.org>2014-01-10 14:34:03 +0000
commitf09ceb60cfad2f74af09be8b66a8c9815533717e (patch)
tree1ed0e5cda74fe12ec219d0721605ffb46655b4f6 /usr.sbin
parent516cde13c43142bb82ac64ccd3ca0e5f5513c488 (diff)
signify silent by default, don't bother working around stdout.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/signify.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/signify.pm b/usr.sbin/pkg_add/OpenBSD/signify.pm
index c30008f29aa..a6703091312 100644
--- a/usr.sbin/pkg_add/OpenBSD/signify.pm
+++ b/usr.sbin/pkg_add/OpenBSD/signify.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: signify.pm,v 1.7 2014/01/09 20:20:01 espie Exp $
+# $OpenBSD: signify.pm,v 1.8 2014/01/10 14:34:02 espie Exp $
#
# Copyright (c) 2013-2014 Marc Espie <espie@openbsd.org>
#
@@ -78,9 +78,7 @@ sub check_signature
$state->errsay("Package signed by untrusted party #1", $signer);
return 0;
}
- if ($state->system(sub {
- open STDOUT, ">", "/dev/null";},
- $cmd, '-p', $pubkey, '-V', '--', $fname) != 0) {
+ if ($state->system($cmd, '-p', $pubkey, '-V', '--', $fname) != 0) {
$state->log("Bad signature");
return 0;
}