From 8a55ea894bee380250f2f747abb42a25bc1585d7 Mon Sep 17 00:00:00 2001 From: espie Date: Wed, 7 Jun 2023 15:09:01 +0000 Subject: [PATCH] do not pass @_ to code snippets, prepare for 5.36 found out by aja@ --- usr.sbin/pkg_add/OpenBSD/BaseState.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/pkg_add/OpenBSD/BaseState.pm b/usr.sbin/pkg_add/OpenBSD/BaseState.pm index 2157e9b171b..161e5745e51 100644 --- a/usr.sbin/pkg_add/OpenBSD/BaseState.pm +++ b/usr.sbin/pkg_add/OpenBSD/BaseState.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: BaseState.pm,v 1.1 2022/01/21 17:41:41 espie Exp $ +# $OpenBSD: BaseState.pm,v 1.2 2023/06/07 15:09:01 espie Exp $ # # Copyright (c) 2007-2022 Marc Espie # @@ -219,11 +219,11 @@ sub _system return 1; } elsif ($r == 0) { $DB::inhibit_exit = 0; - &$todo; + &$todo(); exec {$_[0]} @_ or exit 1; } else { - &$todo2; + &$todo2(); waitpid($r, 0); return $?; } -- 2.20.1