Fixed access control in access() calls
parent
e4b3c59cb1
commit
f59d0e6ec7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue