Fix PATH handling

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6954 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-07-25 14:21:56 +00:00
parent 7302e1389a
commit 4a9cda63ea

View File

@ -1031,7 +1031,7 @@ sub report_capabilities() {
sub mywhich( $ ) {
my $prog = $_[0];
for my $dir ( split /:/, $ENV{PATH} ) {
for my $dir ( split /:/, $config{PATH} ) {
return "$dir/$prog" if -x "$dir/$prog";
}