[Mono-dev] Handling locked files on Mac

rfine at tbrf.net rfine at tbrf.net
Wed Aug 14 00:33:46 UTC 2013

I've written a small patch that causes 'Locked' files on Mac to be 
correctly reported as having FILE_ATTRIBUTE_READONLY set:


I think it's the correct way to handle that flag. It's not 
POSIX-compliant and requires a bit of ifdeffing, but it seemed simplest; 
if there's a better way to do this, let me know. (I considered #ifdef 
UF_IMMUTABLE but it seemed worse).

Getting Mono to actually build is an ongoing nightmare for me so I've 
not been able to test it properly, plus I've screwed up my branching 
such that I can't submit it as a pull request without pulling in a ton 
of irrelevant stuff. If someone working on Mac could cherry-pick it and 
try it out, I'd appreciate it.

- Richard

More information about the Mono-devel-list mailing list