MultiFinder: How to Set File-Protect Bit


TOPIC ---------------------------------------------

I have a problem with the file-protect bit under System 6.0.2 and
MultiFinder. After setting the file-protect bit with ResEdit, I can
still copy or delete the protected file.

DISCUSSION ----------------------------------------

If you have a folder's window open under MultiFinder and change the
file-protect bit for a file in that folder, you can still copy the file
even though the file-protect bit is clearly set.

However, if you set the file-protect bit for that file and then close and
reopen the folder, you will not be able to copy the file.

This is because the directory information for the folder resides in memory,
while the folder is open. Thus, the changes written to the disk at the time
of the file-protect update are not updated in the copy in memory. Closing
and opening the folder causes the directory information to be copied into
RAM with the appropriate values.

This applies to an HFS disk, too. To solve this problem you must unmount
the HFS disk by dragging it to the trash, then reinsert it.



Published Date: Feb 18, 2012