Re: Overriding file lock for writing extended attributes
Kyle Sluder <[email protected]>
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
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