Fix starting local processes in the MS-Windows build

* src/w32proc.c (sys_spawnve): Use default value of
'exec-suffixes', as we are starting a local process.
This commit is contained in:
Eli Zaretskii 2026-07-30 18:42:08 +03:00
parent 99a9307235
commit cba18a7f9c

View file

@ -2731,8 +2731,8 @@ sys_spawnve (int mode, char *cmdname, char **argv, char **envp)
{
program = build_string (cmdname);
full = Qnil;
openp (Vexec_path, program, Vexec_suffixes, &full, make_fixnum (X_OK),
0, 0, NULL);
openp (Vexec_path, program, Fdefault_value (Qexec_suffixes),
&full, make_fixnum (X_OK), 0, 0, NULL);
if (NILP (full))
{
errno = EINVAL;