mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 23:40:13 +00:00
windows-freelance-20070131
FIXES 52069 If an app tries to open the freelance directory for WRITE then the default anonymous access privileges, read/lookup, are not sufficient and cm_HaveAccessRights will fail. Freelance can't get access rights from anywhere. Therefore, cm_HaveAccessRights should special case the Freelance directory.
This commit is contained in:
parent
f3c4bbd41a
commit
bd5ed7d332
@ -76,6 +76,12 @@ int cm_HaveAccessRights(struct cm_scache *scp, struct cm_user *userp, afs_uint32
|
||||
* Otherwise, if we an explicit acl entry, we're also in good shape,
|
||||
* and can definitively answer.
|
||||
*/
|
||||
#ifdef AFS_FREELANCE_CLIENT
|
||||
if (cm_freelanceEnabled && aclScp == cm_data.rootSCachep)
|
||||
{
|
||||
*outRightsp = aclScp->anyAccess;
|
||||
} else
|
||||
#endif
|
||||
if ((~aclScp->anyAccess & rights) == 0) {
|
||||
*outRightsp = rights;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user