delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/08/18/16:23:46

From: noer AT cygnus DOT com (Geoffrey Noer)
Subject: Re: Spawn.cc fix
18 Aug 1998 16:23:46 -0700 :
Message-ID: <19980818155106.13139.cygnus.cygwin32.developers@cygnus.com>
References: <01BDC8A3 DOT 9F355960 AT sos>
Mime-Version: 1.0
To: Sergey Okhapkin <sos AT prospect DOT com DOT ru>
Cc: "'cygwin32-developers AT cygnus DOT com'" <cygwin32-developers AT cygnus DOT com>

Thanks, the change has been committed.
-gjn

On Sat, Aug 15, 1998 at 11:22:46PM +0400, Sergey Okhapkin wrote:
> Hi!
> 
> spawn.cc	(perhaps_suffix): check resolved but not original name for .exe suffix.
> 
> --- spawn.cc.orig       Sat Aug 15 22:33:57 1998
> +++ spawn.cc    Sat Aug 15 23:18:25 1998
> @@ -42,7 +42,7 @@ check_again:
>    int len2 = strlen (buf);
> 
>    /* If .exe not already present, add it and try that.  */
> -  if (len < 5 || strcasecmp (prog + len - 4, ".exe"))
> +  if (len2 < 5 || strcasecmp (buf + len2 - 4, ".exe"))
>      {
>        strcat (buf, ".exe");
>        attr = GetFileAttributesA (buf);
> 
> -- 
> Sergey Okhapkin, http://www.lexa.ru/sos
> Moscow, Russia
> 

-- 
Geoffrey Noer
noer AT cygnus DOT com

- Raw text -


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