Fixed cacheing legacy directories (NTFS 1.x) for Posix ACLs

N2009_11_14_FIXES
jpandre 2008-09-05 13:59:23 +00:00
parent 9525c5c310
commit d13ffc55f8
1 changed files with 9 additions and 1 deletions

View File

@ -1611,8 +1611,16 @@ static struct CACHED_PERMISSIONS *enter_cache(struct SECURITY_CONTEXT *scx,
legacy = (struct CACHED_PERMISSIONS_LEGACY*)ntfs_enter_cache(
scx->vol->legacy_cache, GENERIC(&wanted),
(cache_compare)leg_compare);
if (legacy)
if (legacy) {
cacheentry = &legacy->perm;
#if POSIXACLS
/*
* give direct access to the cached pxdesc
* in the permissions structure
*/
cacheentry->pxdesc = legacy->variable;
#endif
}
}
#endif
}