From 793fdd3360982c48bf60eefbd9c56b4a3c1e09f0 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 9 Sep 2011 12:47:52 -0400 Subject: [PATCH] Windows: ignore SYNCHRONIZE privilege in cm_CheckNTOpen SYNCHRONIZE has not meaning for AFS so just ignore it. Do not deny an open request because it is set. Change-Id: I33fe4a02d0d1ce2cb4d192dd1b2e5f23fda4091c Reviewed-on: http://gerrit.openafs.org/5410 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/WINNT/afsd/cm_vnodeops.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/WINNT/afsd/cm_vnodeops.c b/src/WINNT/afsd/cm_vnodeops.c index 63f7b675c9..d0c04e94c9 100644 --- a/src/WINNT/afsd/cm_vnodeops.c +++ b/src/WINNT/afsd/cm_vnodeops.c @@ -188,6 +188,9 @@ long cm_CheckNTOpen(cm_scache_t *scp, unsigned int desiredAccess, osi_assertx(ldpp != NULL, "null cm_lock_data_t"); *ldpp = NULL; + /* Ignore the SYNCHRONIZE privilege */ + desiredAccess &= ~SYNCHRONIZE; + /* Always allow delete; the RPC will tell us if it's OK */ rights = 0;