From: Michael Kerrisk Date: Sun, 23 Dec 2018 16:36:18 +0000 (+0100) Subject: getxattr.2, removexattr.2, setxattr.2: ERRORS: replace ENOATTR with ENODATA X-Git-Tag: man-pages-5.00~171 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=acac1139a661b144a6d82c33bc7e6b43a4a60c1c;p=thirdparty%2Fman-pages.git getxattr.2, removexattr.2, setxattr.2: ERRORS: replace ENOATTR with ENODATA ENOATTR is not a standard error code, but rather one that is defined in 'libattr' as a synonym for ENODATA. The manual pages should use the error code actually returned by the kernel APIs. See also https://bugzilla.kernel.org/show_bug.cgi?id=201995 Reported-by: Enrico Scholz Reviewed-by: Andreas Gruenbacher Signed-off-by: Michael Kerrisk --- diff --git a/man2/getxattr.2 b/man2/getxattr.2 index 03b3a40c6c..c67aadec87 100644 --- a/man2/getxattr.2 +++ b/man2/getxattr.2 @@ -115,14 +115,14 @@ attribute cannot be retrieved. This can happen on filesystems that support very large attribute values such as NFSv4, for example. .TP -.B ENOATTR +.B ENODATA The named attribute does not exist, or the process has no access to this attribute. -.RB ( ENOATTR -is defined to be a synonym for -.BR ENODATA -in -.IR .) +.\" .RB ( ENOATTR +.\" is defined to be a synonym for +.\" .BR ENODATA +.\" in +.\" .IR .) .TP .B ENOTSUP Extended attributes are not supported by the filesystem, or are disabled. diff --git a/man2/removexattr.2 b/man2/removexattr.2 index cac53d3979..83e332df5c 100644 --- a/man2/removexattr.2 +++ b/man2/removexattr.2 @@ -82,13 +82,13 @@ On failure, \-1 is returned and is set appropriately. .SH ERRORS .TP -.B ENOATTR +.B ENODATA The named attribute does not exist. -.RB ( ENOATTR -is defined to be a synonym for -.BR ENODATA -in -.IR .) +.\" .RB ( ENOATTR +.\" is defined to be a synonym for +.\" .BR ENODATA +.\" in +.\" .IR .) .TP .B ENOTSUP Extended attributes are not supported by the filesystem, or are disabled. diff --git a/man2/setxattr.2 b/man2/setxattr.2 index 34fae7df26..1fcfcdea90 100644 --- a/man2/setxattr.2 +++ b/man2/setxattr.2 @@ -121,14 +121,14 @@ there is insufficient space remaining to store the extended attribute. .B XATTR_CREATE was specified, and the attribute exists already. .TP -.B ENOATTR +.B ENODATA .B XATTR_REPLACE was specified, and the attribute does not exist. -.RB ( ENOATTR -is defined to be a synonym for -.BR ENODATA -in -.IR .) +.\" .RB ( ENOATTR +.\" is defined to be a synonym for +.\" .BR ENODATA +.\" in +.\" .IR .) .TP .B ENOSPC There is insufficient space remaining to store the extended attribute.