OSDN Git Service

* exec.cc (execlp): Add missing _P_PATH_TYPE_EXEC flag in call to
authorcorinna <corinna>
Wed, 19 Jan 2011 10:30:39 +0000 (10:30 +0000)
committercorinna <corinna>
Wed, 19 Jan 2011 10:30:39 +0000 (10:30 +0000)
spawnve.

winsup/cygwin/ChangeLog
winsup/cygwin/exec.cc

index 1cdcd7e..16f1e95 100644 (file)
@@ -1,5 +1,10 @@
 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.
        (_execve): Drop temporary define and drop export alias.
        (execl): Call spawnve.
index 4ca232c..e5d3747 100644 (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 ());
 }