mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 20:04:01 +00:00
hfsplus: fix getxattr return value
We need to support -EOPNOTSUPP for attributes that are not supported to match other filesystems and allow userspace to detect if Posix ACLs are supported or not. setxattr already gets this right. Signed-off-by: Christoph Hellwig <hch@tuxera.com>
This commit is contained in:
parent
32e39e19cc
commit
46bf36ecec
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ ssize_t hfsplus_getxattr(struct dentry *dentry, const char *name,
|
||||||
} else
|
} else
|
||||||
res = size ? -ERANGE : 4;
|
res = size ? -ERANGE : 4;
|
||||||
} else
|
} else
|
||||||
res = -ENODATA;
|
res = -EOPNOTSUPP;
|
||||||
out:
|
out:
|
||||||
if (size)
|
if (size)
|
||||||
hfs_find_exit(&fd);
|
hfs_find_exit(&fd);
|
||||||
|
|
Loading…
Reference in a new issue