[Rt-commit] rt branch, 5.0-trunk, updated. rt-5.0.0-217-g93f529acf4
? sunnavy
sunnavy at bestpractical.com
Fri Jan 8 17:32:22 EST 2021
The branch, 5.0-trunk has been updated
via 93f529acf43b8adb3757237926951201a5979f39 (commit)
from fabb5609049dc089dd3892710e146366b2ee1f23 (commit)
Summary of changes:
lib/RT/Handle.pm | 3 +++
1 file changed, 3 insertions(+)
- Log -----------------------------------------------------------------
commit 93f529acf43b8adb3757237926951201a5979f39
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri Aug 14 03:52:19 2020 +0800
Find full path for processing acl files on upgrade
Starting with perl 5.26, . (the current directory) is no
longer in @INC by default, which causes upgrade steps that insert
acl to fail when RT::Handle tries to require the file.
Set the full path so the acl file can be found.
This is to mirror changes in 8c61476b50, which is to fix indexes.
diff --git a/lib/RT/Handle.pm b/lib/RT/Handle.pm
index 6420f20dd3..222c0b7a50 100644
--- a/lib/RT/Handle.pm
+++ b/lib/RT/Handle.pm
@@ -463,6 +463,9 @@ sub InsertACL {
$path = $base_path;
}
+ # Get the full path since . is no longer in @INC after perl 5.24
+ $path = Cwd::abs_path($path);
+
local *acl;
do $path || return (0, "Couldn't load ACLs: " . $@);
my @acl = acl($dbh);
-----------------------------------------------------------------------
More information about the rt-commit
mailing list