Skip to contentSkip to conversation

New: getxattr() man page wrongly refers to ENOATTR

Bug 51871 bugzilla-daemon-590EEB7GvNiWaY/[email protected] 2 participants 6 messages Dec 20, 2012 – Jan 18, 2013 2 messages not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=51871

Summary: getxattr() man page wrongly refers to ENOATTR
Product: Documentation
Version: unspecified
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: man-pages
AssignedTo: documentation_man-pages-ztI5WcYan/[email protected]
ReportedBy: [email protected]
Regression: No

man 2 getxattr reads:

"If the named attribute does not exist, or the process has no access to this attribute, errno is set to ENOATTR."

However, the actual error code returned is ENODATA.

Signature · 7 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw

[Bug 51871] getxattr() man page wrongly refers to ENOATTR

In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=51871

Andrew Perepechko <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Andrew Perepechko <[email protected]> 2012-12-20 18:13:53 --- Hm, actually ENODATA is an alias of ENOATTR defined in libattr header.

Signature · 7 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw

Re: [Bug 51871] getxattr() man page wrongly refers to ENOATTR

In reply to a message not in the archive
Quoted 2 lines · On Thu, Dec 20, 2012 at 06:13:54PM +0000…

--- Comment #1 from Andrew Perepechko <[email protected]> 2012-12-20 18:13:53 --- Hm, actually ENODATA is an alias of ENOATTR defined in libattr header.

But that's:

a) not how normal Posix errno values are supposed to work. I
b) limited to using xattr, whichle getxattr is also exposed by glibc directly.

This really needs an explanation in the NOTES section, I'll see if I can come up with someting useful.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw

[Bug 51871] getxattr() man page wrongly refers to ENOATTR

In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=51871

--- Comment #2 from Anonymous Emailer <anonymous-ztI5WcYan/[email protected]> 2012-12-22 08:19:28 ---
Reply-To: [email protected]

Quoted 2 lines · On Thu, Dec 20, 2012 at 06:13:54PM +0000…

--- Comment #1 from Andrew Perepechko <[email protected]> 2012-12-20 18:13:53 --- Hm, actually ENODATA is an alias of ENOATTR defined in libattr header.

But that's:

a) not how normal Posix errno values are supposed to work. I
b) limited to using xattr, whichle getxattr is also exposed by glibc directly.

This really needs an explanation in the NOTES section, I'll see if I can come up with someting useful.

Signature · 7 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#6 lore raw

[Bug 51871] getxattr() man page wrongly refers to ENOATTR

In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=51871

Michael Kerrisk <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |[email protected]
         Resolution|INVALID                     |CODE_FIX

--- Comment #3 from Michael Kerrisk <[email protected]> 2013-01-18 23:00:47 --- Andrew, (and Christoph),

Others have also noted this point. For each of the relevant pages, I've simply added the text: "(ENOATTR is defined to be a synonym for ENODATA in <attr/xattr.h>.)"

Signature · 7 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#7 lore raw

[Bug 51871] getxattr() man page wrongly refers to ENOATTR

In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=51871

--- Comment #4 from Andrew Perepechko <[email protected]> 2013-01-18 23:04:33 --- Thanks, Michael and Christoph!

Signature · 7 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html