summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/w32proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w32proc.c b/src/w32proc.c
index ae14c817fa9..f9e20135dd5 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -748,7 +748,7 @@ sys_spawnve (int mode, char *cmdname, char **argv, char **envp)
full = Qnil;
GCPRO1 (program);
- openp (Vexec_path, program, Vexec_suffixes, &full, 1);
+ openp (Vexec_path, program, Vexec_suffixes, &full, make_number (X_OK));
UNGCPRO;
if (NILP (full))
{