mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
Fixed errno when setting security or trusted xattr as non-root
This commit is contained in:
parent
220883485a
commit
1cd46c2241
@ -2536,7 +2536,7 @@ static int ntfs_fuse_setxattr(const char *path, const char *name,
|
||||
if (((namespace == XATTRNS_SECURITY)
|
||||
|| (namespace == XATTRNS_TRUSTED))
|
||||
&& security.uid)
|
||||
return -EACCES;
|
||||
return -EPERM;
|
||||
#endif
|
||||
ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
|
||||
if (!ni)
|
||||
|
Loading…
Reference in New Issue
Block a user