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 <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
Jeffrey Altman 2011-09-09 12:47:52 -04:00 committed by Jeffrey Altman
parent 6c18c8844f
commit 793fdd3360

View File

@ -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;