summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mac.c b/src/mac.c
index 4e6ee4bb8ff..e72da769204 100644
--- a/src/mac.c
+++ b/src/mac.c
@@ -2041,7 +2041,7 @@ run_mac_command (argv, workdir, infn, outfn, errfn)
#endif /* 0 */
Lisp_Object path;
openp (Vexec_path, build_string (newargv[0]), EXEC_SUFFIXES, &path,
- 1);
+ make_number (X_OK));
if (NILP (path))
return -1;