Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com From: Chris Faylor Date: Thu, 13 Apr 2000 12:12:40 -0400 To: cygwin-developers AT sourceware DOT cygnus DOT com Subject: Re: More setup changes Message-ID: <20000413121240.A12593@cygnus.com> Reply-To: cygwin-developers AT sourceware DOT cygnus DOT com Mail-Followup-To: cgf AT cygnus DOT com, cygwin-developers AT sourceware DOT cygnus DOT com References: <20000413012229 DOT A11346 AT cygnus DOT com> <38F59ED4 DOT B02E9392 AT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.1.8i In-Reply-To: <38F59ED4.B02E9392@vinschen.de>; from corinna@vinschen.de on Thu, Apr 13, 2000 at 12:17:56PM +0200 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