This is the mail archive of the
cygwin-developers@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: More setup changes
- To: cygwin-developers at sourceware dot cygnus dot com
- Subject: Re: More setup changes
- From: Chris Faylor <cgf at cygnus dot com>
- Date: Thu, 13 Apr 2000 12:12:40 -0400
- References: <20000413012229.A11346@cygnus.com> <38F59ED4.B02E9392@vinschen.de>
- Reply-To: cygwin-developers at sourceware dot cygnus dot com
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