forked from extern/shorewall_code
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:
parent
7302e1389a
commit
4a9cda63ea
@ -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";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user