From 3b6d9ea88f6d095fa61c21b6e0fa977116768e97 Mon Sep 17 00:00:00 2001 From: shuki Date: Thu, 5 Mar 2026 01:52:19 +0200 Subject: [PATCH] Fix AdminBin compilation: declare $in/$out before open3 Variables declared with 'my' inside open3() were scoped to that call, causing 'Global symbol requires explicit package name' errors. Co-Authored-By: Claude Opus 4.6 --- cpanel/admin/Gniza/Restore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpanel/admin/Gniza/Restore b/cpanel/admin/Gniza/Restore index 7a5c89d..f1a1ea6 100644 --- a/cpanel/admin/Gniza/Restore +++ b/cpanel/admin/Gniza/Restore @@ -87,7 +87,8 @@ sub _run_gniza { my (@args) = @_; my $err_fh = gensym; - my $pid = eval { open3(my $in, my $out, $err_fh, $GNIZA_BIN, @args) }; + my ($in, $out); + my $pid = eval { open3($in, $out, $err_fh, $GNIZA_BIN, @args) }; unless ($pid) { return (0, '', "Failed to execute gniza: $@"); }