summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2018-09-17 12:39:47 +0000
committerMarc Espie <espie@cvs.openbsd.org>2018-09-17 12:39:47 +0000
commit3aa2d3cd8bef56bd6a2a0a6e4d26d99659cb7d99 (patch)
tree68382475f642ab48256ce382828c47e4b6c98f99 /usr.sbin/pkg_add/OpenBSD
parent5b4fdcb2dd64d8ac15bce1e211ea3b1c165e7de1 (diff)
avoid calling make_full for determining special file status, since we
can rely on is_info_name + cwd == '.'
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackingElement.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
index 6355162c2c6..257496a29be 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackingElement.pm,v 1.268 2018/09/04 14:46:12 espie Exp $
+# $OpenBSD: PackingElement.pm,v 1.269 2018/09/17 12:39:46 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
@@ -475,8 +475,8 @@ sub add_object
my ($self, $plist) = @_;
$self->destate($plist->{state});
- my $j = is_info_name($self->fullname);
- if ($j) {
+ my $j = is_info_name($self->name);
+ if ($j && $self->cwd eq '.') {
bless $self, "OpenBSD::PackingElement::$j";
$self->add_object($plist);
} else {