delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/07/24/14:45:12

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: building vim5.0k
24 Jul 1997 14:45:12 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <01BC988E.CB232F70.cygnus.gnu-win32@sos>
Original-To: "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT com>,
"'Colman Curtin'"
<ccurtin AT trintech DOT com>
Encoding: 27 TEXT
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Colman Curtin wrote:
> another thing I came across:
> 'mv foo.exe foo' won't work! it complains they are the same file. have to do
> it in two stages is there any fix for this?

The syscalls.cc file (function stat_worker) contains the following lines:

  /* If we can't find the name, try again with a .exe suffix
     [but only if not already present].  */
  /* FIXME: Doing this is of dubious merit.  */
  if (atts == -1
      && ((len = strlen (win32_name)) < 5
	  || strcasecmp (win32_name + len - 4, ".exe")))
    {
      debug_printf ("_stat_worker: trying with .exe suffix\n");
      strcpy (tmp, win32_name);
      strcat (tmp, ".exe");
      win32_name = tmp;
      atts = GetFileAttributesA (tmp);
    }

I don't know - is this code needed or not.

-- 
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
Looking for a job

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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