windows-getaccessrights-20080805
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 5 Aug 2008 16:45:35 +0000 (16:45 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 5 Aug 2008 16:45:35 +0000 (16:45 +0000)
commitaab4b2b32f933daf48cc138c0eb5d8cf5a2023b5
treeec2760d2ee65772998782ad6bbaad3ad41f54f6f
parenta021b79556f7918598fc48bcd8742429f5620cc9
windows-getaccessrights-20080805

LICENSE MIT

Do not permit GetAccessRights() to be called multiple times within
cm_SyncOp for the same rights check.  If the GetAccessRights() succeeded
and in the next loop the rights check fails, the user simply doesn't
have the rights.

Move a call to cm_SyncOpDone(FETCHSTATUS) from GetBuffer() to MergeStatus().
Anytime an RPC completes successfully we get updated status info for
the object.  Might as well allow threads waiting for status info to us
it.
src/WINNT/afsd/cm_access.c
src/WINNT/afsd/cm_dcache.c
src/WINNT/afsd/cm_scache.c