Consider an OS/2-style absolute path when testing
x:* and \* are absolute paths on OS/2 as well as /*.
This commit is contained in:
parent
4076b74ae8
commit
fc17d48a59
5
check.pl
5
check.pl
|
@ -312,7 +312,10 @@ die "$prog: couldn't get temporary directory\n" if $temp_dir eq '';
|
|||
die "$prog: couldn't cd to $pwd - $!\n" if !chdir($pwd);
|
||||
|
||||
if (!$program_kludge) {
|
||||
$test_prog = "$pwd/$test_prog" if substr($test_prog, 0, 1) ne '/';
|
||||
$test_prog = "$pwd/$test_prog"
|
||||
if substr($test_prog, 0, 1) ne '/' &&
|
||||
($os ne 'os2' || (substr($test_prog, 0, 1) ne '\\' &&
|
||||
substr($test_prog, 1, 1) ne ':'));
|
||||
die "$prog: $test_prog is not executable - bye\n"
|
||||
if (! -x $test_prog && $os ne 'os2');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue