From d13ffc55f8caf4fc38375cfa66762643f5a750c9 Mon Sep 17 00:00:00 2001 From: jpandre Date: Fri, 5 Sep 2008 13:59:23 +0000 Subject: [PATCH] Fixed cacheing legacy directories (NTFS 1.x) for Posix ACLs --- libntfs-3g/security.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libntfs-3g/security.c b/libntfs-3g/security.c index 213c0129..9e52f7f5 100644 --- a/libntfs-3g/security.c +++ b/libntfs-3g/security.c @@ -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 }