This is the mail archive of the cygwin-developers@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: More setup changes


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]