Bug 52681 - getspnam errno values
Summary: getspnam errno values
Status: RESOLVED CODE_FIX
Alias: None
Product: Documentation
Classification: Unclassified
Component: man-pages (show other bugs)
Hardware: All Linux
: P1 low
Assignee: documentation_man-pages@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-14 01:48 UTC by Wolfgang Rohdewald
Modified: 2013-01-21 23:24 UTC (History)
1 user (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Wolfgang Rohdewald 2013-01-14 01:48:41 UTC
man getspnam, section ERRORS only mentions ERANGE.

If I cannot access /etc/shadow, EACCESS is returned.

Shouldn't EACCESS be mentioned on the man page?

kubuntu 12.10, kernel 3.5.0-21
Comment 1 Michael Kerrisk 2013-01-21 23:24:41 UTC
Thanks. I've added EACCES under errors.

--- a/man3/getspnam.3
+++ b/man3/getspnam.3
@@ -224,6 +224,9 @@ The reentrant functions return zero on success.
 In case of error, an error number is returned.
 .SH ERRORS
 .TP
+.B EACCES
+The caller does not have permission to access the shadow password file.
+.TP
 .B ERANGE
 Supplied buffer is too small.
 .SH FILES

Note You need to log in before you can comment on or make changes to this bug.