From b84496b8593dd9c220022c78d8b9b571c7b78e8d Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sun, 1 Apr 2012 12:40:36 -0400 Subject: [PATCH] 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 Reviewed-by: Jeffrey Altman --- src/WINNT/afsd/cm_access.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/WINNT/afsd/cm_access.c b/src/WINNT/afsd/cm_access.c index 23b48b76cd..79692b1e2f 100644 --- a/src/WINNT/afsd/cm_access.c +++ b/src/WINNT/afsd/cm_access.c @@ -78,7 +78,9 @@ int cm_HaveAccessRights(struct cm_scache *scp, struct cm_user *userp, cm_req_t * * and can definitively answer. */ #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; } else