Use ERANGE instead of EOVERFLOW selected in r182059, this seems more

appropriate even if Solaris doesn't document it (E2BIG) or use it
(EOVERFLOW).

Submitted by:	nectar at apple dot com
Sponsored by:	Apple, Inc.
MFC after:	3 days
This commit is contained in:
Robert Watson 2008-08-24 19:55:10 +00:00
parent 537de51435
commit e08f2b26f4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182118

View File

@ -508,7 +508,7 @@ getaudit(struct thread *td, struct getaudit_args *uap)
if (error)
return (error);
if (td->td_ucred->cr_audit.ai_termid.at_type == AU_IPv6)
return (EOVERFLOW);
return (ERANGE);
bzero(&ai, sizeof(ai));
ai.ai_auid = td->td_ucred->cr_audit.ai_auid;
ai.ai_mask = td->td_ucred->cr_audit.ai_mask;