This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: rm -rf dir hangs on SAMBA drive if dir/foo is read-only.
- To: Cygwin at cygwin dot com
- Subject: Re: rm -rf dir hangs on SAMBA drive if dir/foo is read-only.
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Tue, 7 Aug 2001 00:13:17 -0400
- References: <002a01c0e2ab$be56f9f0$21c9ca95@mow.siemens.ru> <002b01c0e2ae$90548920$21c9ca95@mow.siemens.ru> <20010522185651.A25000@redhat.com>
- Reply-To: cygwin at cygwin dot com
On Tue, May 22, 2001 at 06:56:51PM -0400, Christopher Faylor wrote:
>On Tue, May 22, 2001 at 03:01:33PM +0400, Andrej Borsenkow wrote:
>>Looks like rm problem - it just loops. It is with fileutils-4.0-3:
>>
>>mw1g017@MW1G17C /mnt/bor/tmp/tst
>>$ rm -r bar
>>rm: remove write-protected file `bar/foo'? y
>>rm: remove write-protected file `bar/foo'? y
>>rm: remove write-protected file `bar/foo'? y
>>rm: remove write-protected file `bar/foo'? y
>>rm: remove write-protected file `bar/foo'? y
>>rm: remove write-protected file `bar/foo'? y
>>rm: remove write-protected file `bar/foo'? y
>>...
>
>Bleah. This is apparently due to some "clever" code that I added to
>cygwin which attempts to deal with removing a file that is already
>opened by using the windows NT DELETE_ON_CLOSE facility. It doesn't
>appear to work right on samba shares. The CreateFile/CloseHandle
>works but the file is never deleted.
>
>I have to think about the best way to deal with this.
This should be fixed in the latest snapshots.
cgf
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/