diff --git a/src/lowntfs-3g.c b/src/lowntfs-3g.c index a281da6f..0e2c9479 100644 --- a/src/lowntfs-3g.c +++ b/src/lowntfs-3g.c @@ -2848,7 +2848,7 @@ static void ntfs_fuse_getxattr(fuse_req_t req, fuse_ino_t ino, const char *name, /* trusted only readable by root */ if ((namespace == XATTRNS_TRUSTED) && security.uid) { - res = -EPERM; + res = -ENODATA; goto out; } #endif diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index 8919761d..47a17b1d 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -2791,7 +2791,7 @@ static int ntfs_fuse_getxattr(const char *path, const char *name, /* trusted only readable by root */ if ((namespace == XATTRNS_TRUSTED) && security.uid) - return -EPERM; + return -ENODATA; #endif ni = ntfs_pathname_to_inode(ctx->vol, NULL, path); if (!ni)