This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: B20, Win95: cp destroys file
- To: "'Mumit Khan'" <khan at xraylith dot wisc dot edu>, <earnie_boyd at yahoo dot com>
- Subject: RE: B20, Win95: cp destroys file
- From: "Hugh Winkler" <hughw at scoutsys dot com>
- Date: Mon, 16 Nov 1998 15:04:53 -0600
- Cc: "'Henry S. Warren, Jr.'" <hank at watson dot ibm dot com>, <gnu-win32 at cygnus dot com>
- Reply-To: <hughw at scoutsys 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@cygnus.com" with one line of text: "help".