This is the mail archive of the mailing list for the Cygwin project. See the Cygwin home page for more information.
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: B20: mv deletes files on error (NT)

Anders Norlander wrote:
> `mv foo Foo' is a perfectly legal command, case-sensitive file-system or
> not.

Imagine, what `mv' does in this case (shortened):

	stat('foo', &st_from);
	stat('Foo', &st_to);
	if (st_from.st_ino == st_to.st_ino)
	    // Oops, it's already the same file

and this is exactly the situation for `mv' under windows! It's not
a bug of cygwin dll, because the two stat calls really return stat
structures of the same file! This is correct for case preserving FS.
It's the problem of the 'mv' implementation, to handle this situation
not right.


Want to unsubscribe from this list?
Send a message to