From: espie Date: Wed, 11 Oct 2023 13:52:29 +0000 (+0000) Subject: missing state in locator call, surprised nobody else ran into that X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f04df370e6b790cb0dee23405969f42f8e885107;p=openbsd missing state in locator call, surprised nobody else ran into that --- diff --git a/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm b/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm index ad97455ef2a..414187e9c32 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm @@ -1,7 +1,7 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgAdd.pm,v 1.144 2023/10/07 09:11:26 espie Exp $ +# $OpenBSD: PkgAdd.pm,v 1.145 2023/10/11 13:52:29 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie # @@ -1081,7 +1081,7 @@ sub may_grab_debug_for($class, $orig, $kept, $state) sub grab_debug_package($class, $d, $dbg, $state) { - my $o = $state->locator->find($dbg); + my $o = $state->locator->find($dbg, $state); return if !defined $o; require OpenBSD::Temp; my ($fh, $name) = OpenBSD::Temp::permanent_file($d, "debug-pkg");