summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2017-01-25 14:10:46 +0000
committerespie <espie@openbsd.org>2017-01-25 14:10:46 +0000
commit5e85f59b9e8f9d9bf341206fb5c18ebde1f5966b (patch)
treec0fbde24bb77affeb31ec66e382a6170be265d64
parentsome run environnement do not properly reset signals (e.g., python) and (diff)
downloadwireguard-openbsd-5e85f59b9e8f9d9bf341206fb5c18ebde1f5966b.tar.xz
wireguard-openbsd-5e85f59b9e8f9d9bf341206fb5c18ebde1f5966b.zip
In some cases, pkg_info -e spec would display the spec instead of the
actual pkg name as intended. (forgot who reported that one, sorry)
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgInfo.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm b/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm
index cc2c3f5633e..86caaa83667 100644
--- a/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm
@@ -1,6 +1,6 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: PkgInfo.pm,v 1.43 2016/10/04 10:10:19 espie Exp $
+# $OpenBSD: PkgInfo.pm,v 1.44 2017/01/25 14:10:46 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
@@ -212,7 +212,7 @@ sub find_pkg_in
return 0;
} else {
for my $pkg (@$r) {
- &$code($pkgname, $pkg);
+ &$code($pkg->name, $pkg);
$pkg->close_now;
$pkg->wipe_info;
}