]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
getxattr.2, removexattr.2, setxattr.2: ERRORS: replace ENOATTR with ENODATA
authorMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 23 Dec 2018 16:36:18 +0000 (17:36 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 23 Dec 2018 18:09:18 +0000 (19:09 +0100)
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 <enrico.scholz@sigma-chemnitz.de>
Reviewed-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/getxattr.2
man2/removexattr.2
man2/setxattr.2

index 03b3a40c6c818265af8e38707ac3b944e6af622a..c67aadec876c894f74ee89b7f056f44728621774 100644 (file)
@@ -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 <attr/xattr.h> .)
+.\" .RB ( ENOATTR
+.\" is defined to be a synonym for
+.\" .BR ENODATA
+.\" in
+.\" .IR <attr/attributes.h> .)
 .TP
 .B ENOTSUP
 Extended attributes are not supported by the filesystem, or are disabled.
index cac53d3979cd53f1c65fb2fba16ffbd4da446623..83e332df5c3ad46e7094cf42d18611f7f7c41350 100644 (file)
@@ -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 <attr/xattr.h> .)
+.\" .RB ( ENOATTR
+.\" is defined to be a synonym for
+.\" .BR ENODATA
+.\" in
+.\" .IR <attr/attributes.h> .)
 .TP
 .B ENOTSUP
 Extended attributes are not supported by the filesystem, or are disabled.
index 34fae7df265670b773360fd945def1a1128494aa..1fcfcdea9036905a6d2e6789f4e93eb58973cc0f 100644 (file)
@@ -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 <attr/xattr.h> .)
+.\" .RB ( ENOATTR
+.\" is defined to be a synonym for
+.\" .BR ENODATA
+.\" in
+.\" .IR <attr/attributes.h> .)
 .TP
 .B ENOSPC
 There is insufficient space remaining to store the extended attribute.