Applied patch from Peter Palfrader (for finding executables)

This commit is contained in:
duncan_ferguson 2006-11-07 08:00:24 +00:00
parent 9303b92b39
commit 69bbf5ca2a

View file

@ -228,7 +228,7 @@ sub find_binary($)
logmsg( 2, "Looking for $binary" ); logmsg( 2, "Looking for $binary" );
my $path; my $path;
if ( ! -x $binary ) unless ( $binary =~ m#/# )
{ {
# search the users $PATH and then a few other places to find the binary # search the users $PATH and then a few other places to find the binary
# just in case $PATH isnt set up right # just in case $PATH isnt set up right