B20: mv deletes files on error (NT)

Corinna Vinschen corinna.vinschen@cityweb.de
Mon Mar 29 13:24:00 GMT 1999


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.

Regards,
Corinna

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list