Windows: Freelance HaveAccessRights

Change the test in cm_HaveAccessRights related to Freelance
mode.  All objects in the freelance cell and root volume
by definition have access rights.

Change-Id: Ibb96b12c15728bc6b711b3d7f2ad892c55109cbf
Reviewed-on: http://gerrit.openafs.org/7008
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
This commit is contained in:
Jeffrey Altman 2012-04-01 12:40:36 -04:00 committed by Jeffrey Altman
parent 9a76279ef1
commit b84496b859

View File

@ -78,7 +78,9 @@ int cm_HaveAccessRights(struct cm_scache *scp, struct cm_user *userp, cm_req_t *
* and can definitively answer. * and can definitively answer.
*/ */
#ifdef AFS_FREELANCE_CLIENT #ifdef AFS_FREELANCE_CLIENT
if (cm_freelanceEnabled && aclScp == cm_data.rootSCachep) if (cm_freelanceEnabled &&
aclScp->fid.cell==AFS_FAKE_ROOT_CELL_ID &&
aclScp->fid.volume==AFS_FAKE_ROOT_VOL_ID)
{ {
*outRightsp = aclScp->anyAccess; *outRightsp = aclScp->anyAccess;
} else } else