Fixed errno when setting security or trusted xattr as non-root

This commit is contained in:
jpandre 2009-05-17 20:13:28 +00:00
parent 220883485a
commit 1cd46c2241

View File

@ -2536,7 +2536,7 @@ static int ntfs_fuse_setxattr(const char *path, const char *name,
if (((namespace == XATTRNS_SECURITY) if (((namespace == XATTRNS_SECURITY)
|| (namespace == XATTRNS_TRUSTED)) || (namespace == XATTRNS_TRUSTED))
&& security.uid) && security.uid)
return -EACCES; return -EPERM;
#endif #endif
ni = ntfs_pathname_to_inode(ctx->vol, NULL, path); ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
if (!ni) if (!ni)