From 1cd46c224154344ee498721e52244aa02a08678a Mon Sep 17 00:00:00 2001 From: jpandre Date: Sun, 17 May 2009 20:13:28 +0000 Subject: [PATCH] Fixed errno when setting security or trusted xattr as non-root --- 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 f7176427..77897732 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -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)