From: espie Date: Mon, 17 Sep 2018 12:39:46 +0000 (+0000) Subject: avoid calling make_full for determining special file status, since we X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3d1ed803359de57d40726c6d2bdd2c814eb8f8c0;p=openbsd avoid calling make_full for determining special file status, since we can rely on is_info_name + cwd == '.' --- 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 # @@ -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 {