delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/04/13/11:12:54

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
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 <cgf AT cygnus DOT com>
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
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019