From: espie Date: Wed, 7 Jun 2023 15:09:01 +0000 (+0000) Subject: do not pass @_ to code snippets, prepare for 5.36 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8a55ea894bee380250f2f747abb42a25bc1585d7;p=openbsd do not pass @_ to code snippets, prepare for 5.36 found out by aja@ --- 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 $?; }