rm -rf dir hangs on SAMBA drive if dir/foo is read-only.

Christopher Faylor cgf@redhat.com
Tue May 22 15:58:00 GMT 2001


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.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list