add a test for lib existence
This commit is contained in:
parent
66ae5c52ae
commit
a77de33997
|
@ -78,6 +78,11 @@ $ENV{SHELL} = '/bin/sh' if exists $ENV{SHELL};
|
|||
if ( $Config{ZM_LD_PRELOAD} ) {
|
||||
Debug("Adding ENV{LD_PRELOAD} = $Config{ZM_LD_PRELOAD}");
|
||||
$ENV{LD_PRELOAD} = $Config{ZM_LD_PRELOAD};
|
||||
foreach my $lib ( split(/\s+/, $ENV{LD_PRELOAD} ) ) {
|
||||
if ( ! -e $lib ) {
|
||||
Warning("LD_PRELOAD lib $lib does not exist from LD_PRELOAD $ENV{LD_PRELOAD}.");
|
||||
}
|
||||
}
|
||||
}
|
||||
delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};
|
||||
|
||||
|
|
Loading…
Reference in New Issue