DEVEL15-windows-getaccessrights-20080805
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 5 Aug 2008 16:46:37 +0000 (16:46 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 5 Aug 2008 16:46:37 +0000 (16:46 +0000)
commit7eafe07c8e4c5f99c8341b89029ab9f5a9240827
treeb7c246a756ef5a7dd446b4f3510710859b4ae312
parentb459524f552c91276837fd3169aec3289bac2a71
DEVEL15-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.

(cherry picked from commit aab4b2b32f933daf48cc138c0eb5d8cf5a2023b5)
src/WINNT/afsd/cm_access.c
src/WINNT/afsd/cm_dcache.c
src/WINNT/afsd/cm_scache.c