[FIX][VM][UNIX] Directory deletion fix

Ned Konz ned at bike-nomad.com
Sat Nov 30 23:52:48 UTC 2002


There is a problem exhibited by the Mac and Unix VMs:

If you access the contents of a directory,
then delete it,
then try to access its contents again,

the directory is not properly diagnosed as being nonexistent.

This is caught by the FileDirectoryTests.

In the Unix VM, this is due to the opened directory handle not being
invalidated when the directory is deleted.

The attached patch to the SF 3.2-6 sources fixes this problem
by marking the opened directory as invalid when it's deleted.

This does require the name to be the same (i.e. watch out for trailing 
slashes!).

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: directoryDelete.patch
Type: text/x-diff
Size: 1100 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20021130/974266d5/directoryDelete.bin


More information about the Squeak-dev mailing list