aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2018-12-23 17:36:18 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2018-12-23 19:09:18 +0100
commitacac1139a661b144a6d82c33bc7e6b43a4a60c1c (patch)
tree1be26fe6249916158e423d5170c6a8f231b3697e
parent69fc6c676102c437e279f9b2725edb29e5527d33 (diff)
downloadman-pages-acac1139a661b144a6d82c33bc7e6b43a4a60c1c.tar.gz
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 <enrico.scholz@sigma-chemnitz.de> Reviewed-by: Andreas Gruenbacher <agruenba@redhat.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/getxattr.212
-rw-r--r--man2/removexattr.212
-rw-r--r--man2/setxattr.212
3 files changed, 18 insertions, 18 deletions
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 <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.
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 <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.
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 <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.