diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 1cdcd7e0b..16f1e9592 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2011-01-19 Corinna Vinschen + + * exec.cc (execlp): Add missing _P_PATH_TYPE_EXEC flag in call to + spawnve. + 2011-01-19 Corinna Vinschen * exec.cc: Rearrange functions in alphabetical order. 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 ()); }