delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/08/15/12:52:09

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: Spawn.cc fix
15 Aug 1998 12:52:09 -0700 :
Message-ID: <01BDC8A3.9F355960.cygnus.cygwin32.developers@sos>
To: "'cygwin32-developers AT cygnus DOT com'" <cygwin32-developers AT cygnus DOT com>

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 -


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