* exec.cc (execlp): Add missing _P_PATH_TYPE_EXEC flag in call to
spawnve.
This commit is contained in:
		| @@ -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> | 2011-01-19  Corinna Vinschen  <corinna@vinschen.de> | ||||||
|  |  | ||||||
| 	* exec.cc: Rearrange functions in alphabetical order. | 	* exec.cc: Rearrange functions in alphabetical order. | ||||||
|   | |||||||
| @@ -73,7 +73,8 @@ execlp (const char *file, const char *arg0, ...) | |||||||
|   while (argv[i++] != NULL); |   while (argv[i++] != NULL); | ||||||
|   va_end (args); |   va_end (args); | ||||||
|   MALLOC_CHECK; |   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 ()); | 		  (char * const  *) argv, cur_environ ()); | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user