More setup changes

Chris Faylor cgf@cygnus.com
Thu Apr 13 09:12:00 GMT 2000


On Thu, Apr 13, 2000 at 12:17:56PM +0200, Corinna Vinschen wrote:
>==== SCHNIPP ====
>--- execvp.c    2000/02/17 19:39:47     1.1.1.1
>+++ execvp.c    2000/04/13 10:10:53
>@@ -73,7 +73,7 @@ _DEFUN (execvp, (file, argv),
>     {
>       strccpy (buf, path, PATH_DELIM);
>       /* An empty entry means the current directory.  */
>-      if (*buf != 0)
>+      if (*buf != 0 && buf[strlen(buf) - 1] != '/')
>        strcat (buf, "/");
>       strcat (buf, file);
>       if (execv (buf, argv) == -1 && errno != ENOENT)
>==== SCHNAPP ====

This is the best solution.  Please submit a patch to
newlib@sourceware.cygnus.com.  I assume it will be approved immediately
and you can then check it in.

cgf


More information about the Cygwin-developers mailing list