From 69bbf5ca2ac2a4a63e9c0610ac575bf2c40726ef Mon Sep 17 00:00:00 2001 From: duncan_ferguson Date: Tue, 7 Nov 2006 08:00:24 +0000 Subject: [PATCH] Applied patch from Peter Palfrader (for finding executables) --- clusterssh/src/cssh.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clusterssh/src/cssh.pl b/clusterssh/src/cssh.pl index 9f2ae8b..00086f0 100755 --- a/clusterssh/src/cssh.pl +++ b/clusterssh/src/cssh.pl @@ -228,7 +228,7 @@ sub find_binary($) logmsg( 2, "Looking for $binary" ); my $path; - if ( ! -x $binary ) + unless ( $binary =~ m#/# ) { # search the users $PATH and then a few other places to find the binary # just in case $PATH isnt set up right