From: espie Date: Fri, 10 Jan 2014 14:34:02 +0000 (+0000) Subject: signify silent by default, don't bother working around stdout. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0dd61ec2f1a6314f279b9b2a54dafa2e97a0500e;p=openbsd signify silent by default, don't bother working around stdout. --- 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 # @@ -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; }