Commit 3ce5421b authored by Andrey Shevchuk's avatar Andrey Shevchuk

sitecustomize.pl: override system call without LD_LIBRARY_PATH LD_RUN_PATH envs

parent 74f6a6e0
BEGIN {
my $code;
if( defined &CORE::GLOBAL::system ) {
my $original = \&CORE::GLOBAL::system;
$code = sub {
delete @ENV{qw[LD_LIBRARY_PATH LD_RUN_PATH]};
return $original->(@_);
};
} else {
$code = sub {
delete @ENV{qw[LD_LIBRARY_PATH LD_RUN_PATH]};
return CORE::system(@_);
};
}
no warnings 'redefine';
*CORE::GLOBAL::system = $code;
}
package Thirdlane::Boot::Local; package Thirdlane::Boot::Local;
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment