Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining file permissions



On 10.11.2005 23:47, "Mike Kluev" <email@hidden> wrote:

>> According to <http://developer.apple.com/technotes/fl/fl_37.html>, opening
>> files on read-only volumes with fsRdWrPerm of fsWrPerm should succeed,
>> falling back to read/deny-write or similar. Ancient documentation, but still
>> true for some file systems (AFP, but not SMB, rdar://3755430).
> 
> That's true as of remote AFP volumes, it is not the case with local
> volumes, see below.

  Thanks for pointing out the obvious - of course, "read/deny-write" doesn't
apply to anything but AFP directly. Yet, the end result is the same -
opening may succeed, even though the file is effectifely read-only.

> Yep, the technote is interesting and somewhat ancient. It lacks
> one important translation: file manager model <-> bsd model, the
> translation that could change the whole story quite dramatically.

  And trying to write such a spec would likely discover a number of
inconsistencies in the current implementation :)

- WBR, Alexey Proskuryakov


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Determining file permissions (From: Mike Kluev <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.