From f59d0e6ec71c451a5b129bf7274fc8ede7897145 Mon Sep 17 00:00:00 2001 From: jpandre Date: Fri, 18 Sep 2009 16:20:10 +0000 Subject: [PATCH] Fixed access control in access() calls --- src/ntfs-3g.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index 71de388f..5d836428 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -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;