Fixed a missing inode closing

N2009_11_14_FIXES
jpandre 2007-10-09 11:59:33 +00:00
parent 0eebef6e06
commit 7cc6adba7c
1 changed files with 3 additions and 1 deletions

View File

@ -2994,9 +2994,11 @@ BOOL ntfs_allowed_dir_access(struct SECURITY_CONTEXT *scx,
name = strrchr(dirpath, '/');
*++name = 0;
dir_ni = ntfs_pathname_to_inode(scx->vol, NULL, dirpath);
if (dir_ni)
if (dir_ni) {
allow = ntfs_allowed_access(scx,path,
dir_ni, accesstype);
ntfs_inode_close(dir_ni);
}
ntfs_free(dirpath);
}
return (allow); /* errno is set if not allowed */