From: Sankar P 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 Acked-by: Jan Kara --- 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 =