Use -x &xp_path() more consistently.

git-svn-id: svn://10.0.0.236/trunk@131862 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pschwartau%netscape.com
2002-10-12 02:08:02 +00:00
parent c53947e817
commit 41a5b57b6e

View File

@@ -606,6 +606,11 @@ sub get_xpc_engine_command {
$m5_home .= "/";
}
if (($os_type ne "MAC") && !(-x &xp_path($m5_home . "xpcshell"))) {
# mac doesn't seem to deal with -x correctly
die (&xp_path($m5_home . "xpcshell") . " is not a valid executable on this system.\n");
}
return &xp_path($m5_home . "xpcshell");
}
@@ -739,7 +744,7 @@ sub get_dd_engine_command {
}
if (($os_type ne "MAC") && !(-x $retval)) {
if (($os_type ne "MAC") && !(-x &xp_path($retval))) {
# mac doesn't seem to deal with -x correctly
die ($retval . " is not a valid executable on this system.\n");
}