* exec.cc (execlp): Add missing _P_PATH_TYPE_EXEC flag in call to

spawnve.
This commit is contained in:
Corinna Vinschen 2011-01-19 10:30:39 +00:00
parent 26b070c0cf
commit 1393f63206
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-01-19 Corinna Vinschen <corinna@vinschen.de>
* exec.cc (execlp): Add missing _P_PATH_TYPE_EXEC flag in call to
spawnve.
2011-01-19 Corinna Vinschen <corinna@vinschen.de>
* exec.cc: Rearrange functions in alphabetical order.

View File

@ -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 ());
}