From a77de33997378593b4dd68aa739ec362c882d80b Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 27 Sep 2016 12:51:04 -0400 Subject: [PATCH] add a test for lib existence --- scripts/zmdc.pl.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/zmdc.pl.in b/scripts/zmdc.pl.in index 2675e0e39..f6ccf4491 100644 --- a/scripts/zmdc.pl.in +++ b/scripts/zmdc.pl.in @@ -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)};