delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/11/17/00:06:53

From: hughw AT scoutsys DOT com (Hugh Winkler)
Subject: RE: B20, Win95: cp destroys file
17 Nov 1998 00:06:53 -0800 :
Message-ID: <000101be11a4$c53387f0$0c0aa8c0.cygnus.gnu-win32@harry.scoutsys.com>
References: <9811160532 DOT AA24319 AT modi DOT xraylith DOT wisc DOT edu>
Reply-To: <hughw AT scoutsys DOT com>
Mime-Version: 1.0
To: "'Mumit Khan'" <khan AT xraylith DOT wisc DOT edu>, <earnie_boyd AT yahoo DOT com>
Cc: "'Henry S. Warren, Jr.'" <hank AT watson DOT ibm DOT com>, <gnu-win32 AT cygnus DOT com>

> I believe that the problem is in MoveFileEx (WIN API), which
> doesn't do
> the right thing. However, the rename in MSVC runtime does somehow do
> it correctly on all filesystems, so it's doing something more
> than using
> MoveFileEx. (fyi, mv uses the rename runtime routine in winsup that in
> turn uses MoveFileEx to do the actual renaming).
>
> Comments from win32 savvy folks?
>

msvcrt rename() uses MoveFile, not MFEx. It's just a simple pass through
call, no input checking.

Hugh Winkler
Scout Systems, Inc.


-
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