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
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