Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-ID: <36FFEF72.CF8A270A@cityweb.de>
Date: Mon, 29 Mar 1999 23:24:02 +0200
From: Corinna Vinschen <corinna.vinschen@cityweb.de>
X-Mailer: Mozilla 4.51 [en] (WinNT; I)
X-Accept-Language: de,en
MIME-Version: 1.0
To: Anders Norlander <anorland@hem2.passagen.se>
CC: Chris Faylor <cgf@cygnus.com>, David Dagon <david.dagon@mindspring.com>,
        cygwin@sourceware.cygnus.com
Subject: Re: B20: mv deletes files on error (NT)
References: <36FD516F.45299E3E@mindspring.com> <19990329005659.A2473@cygnus.com> <36FFA8DF.3763B5D6@hem2.passagen.se>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

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

