Fixed access control in access() calls

N2009_11_14_FIXES
jpandre 2009-09-18 16:20:10 +00:00
parent e4b3c59cb1
commit f59d0e6ec7
1 changed files with 1 additions and 1 deletions

View File

@ -1311,7 +1311,7 @@ static int ntfs_fuse_access(const char *path, int type)
res = -EOPNOTSUPP;
} else {
/* parent directory must be readable */
if (ntfs_allowed_dir_access(&security,path,S_IREAD)) {
if (ntfs_allowed_dir_access(&security,path,S_IEXEC)) {
ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
if (!ni) {
res = -errno;