Mail Archives: cygwin-developers/1998/08/18/16:23:46
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 -