Mail Archives: cygwin-developers/1998/08/15/12:52:09
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
- Raw text -