mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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:
parent
537de51435
commit
e08f2b26f4
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue