You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qubes-linux-kernel/patches.fixes/novfs-xattr-errcode-cleanup2

33 lines
944 B

From: Sankar P <psankar@novell.com>
Subject: [PATCH] novfs: Fix error codes for getxattr for novfs
Patch-mainline: No
References: bnc#529535
getxattr function should not use harsh error codes like ENOENT
if the named attribute cannot be obtained. This fixes makes
novfs return ENOATTR as suggested by the man page.
Signed-off-by: Sankar P <psankar@novell.com>
Acked-by: Jan Kara <jack@suse.cz>
---
fs/novfs/file.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
--- a/fs/novfs/file.c
+++ b/fs/novfs/file.c
@@ -319,13 +319,7 @@ int novfs_getx_file_info(char *Path, con
reply->Reply.ErrorCode);
DbgPrint("xattr: replylen=%d", replylen);
- //0xC9 = EA not found (C9), 0xD1 = EA access denied
- if ((reply->Reply.ErrorCode == 0xC9)
- || (reply->Reply.ErrorCode == 0xD1)) {
- retCode = -ENOATTR;
- } else {
- retCode = -ENOENT;
- }
+ retCode = -ENOATTR;
} else {
*dataLen =