Mail Archives: cygwin-developers/2000/04/13/11:12:54
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 AT sourceware DOT cygnus DOT com. I assume it will be approved immediately
and you can then check it in.
cgf
- Raw text -