summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/exec.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/exec.cc')
-rw-r--r--winsup/cygwin/exec.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/exec.cc b/winsup/cygwin/exec.cc
index 4ca232cef..e5d374711 100644
--- a/winsup/cygwin/exec.cc
+++ b/winsup/cygwin/exec.cc
@@ -73,7 +73,8 @@ execlp (const char *file, const char *arg0, ...)
while (argv[i++] != NULL);
va_end (args);
MALLOC_CHECK;
- return spawnve (_P_OVERLAY, find_exec (file, buf, "PATH=", FE_NNF) ?: "",
+ return spawnve (_P_OVERLAY | _P_PATH_TYPE_EXEC,
+ find_exec (file, buf, "PATH=", FE_NNF) ?: "",
(char * const *) argv, cur_environ ());
}