Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-01-19 13:30:39 +0300
committerCorinna Vinschen <corinna@vinschen.de>2011-01-19 13:30:39 +0300
commit1393f63206ee9bd9e5452eb5fcd6fad4b8e46e4e (patch)
treec5b79e30ce8cc07fdd45019d42545a77cf0db795 /winsup/cygwin/exec.cc
parent26b070c0cf8948c40bb8d09bfff318b6efbcec5c (diff)
* exec.cc (execlp): Add missing _P_PATH_TYPE_EXEC flag in call to
spawnve.
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 ());
}