From: Christopher Faylor Date: Sat, 17 Jun 2006 01:23:38 GMT Subject: Re: Cygwin git and windows network shares Message-ID: <20060617012338.GB23924@trixie.casa.cgf.cx> In-Reply-To: <17555.21858.292000.494454@lapjr.intranet.kiel.bmiag.de> On Sat, Jun 17, 2006 at 03:05:38AM +0200, Juergen Ruehle wrote: >Christopher Faylor writes: > > I also meant to ask if there was an i is nonzero after the call to the > > rename() above? If so, what was the errno? If not, it is a huge > > problem if rename is reporting that it is able to rename a file but is > > not actually doing it. > >After some testing the conclusion is that it's not lying, but only >failing in interesting ways on my (and seemingly also Niklas') system: > > - rename on NTFS succeeds (and returns 0) > > - rename on FAT32 succeeds if target does not exist (and returns 0) > > rename on FAT32 fails if target exists with EACCESS > > (manual mv on commandline works) > > - rename on a network share always hangs for a while and then fails > with EBUSY (even if target does not exist) > > (share served by XP, tested both NTFS and FAT32) > > (manual mv still works) > >Various combinations of server, ntsec, and smbntsec didn't seem to >make a difference; /etc/{passwd,group} have been freshly created. Thanks. I really appreciate the details. I've passed them on to the last person to touch the rename code. cgf