Re: Overriding file lock for writing extended attributes
Christiaan Hofman <[email protected]>
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
On Oct 26, 2009, at 19:01, Kyle Sluder wrote: > On Mon, Oct 26, 2009 at 2:24 AM, Christiaan Hofman > <[email protected]> wrote: >> When I try to write extended attributes using setxattr() it fails >> with an >> EPERM POSIX error when the file is locked. Is there a way to >> override the >> lock and write extended attributes to locked files? For instance, >> when >> NSDocument saves to a locked file it will be able to write anyway, >> usually >> after asking the user using an alert. So how can I emulate this or >> EAs? > > File locks are implemented with the uchng flag, not with xattrs. > > --Kyle Sluder What does it matter how locks are implemented? I'm not saying locks are put in the EAs, I'm saying locks prevent me from writing EAs. Christiaan