When getaudit(2) is unable to fit the terminal IPv6 address into the
space provided by its argument structure, return EOVERFLOW instead of E2BIG. The latter is documented in Solaris's man page, but the former is implemented. In either case, the caller should use getaudit_addr(2) to return the IPv6 address. Submitted by: sson Obtained from: Apple, Inc. MFC after: 3 days
This commit is contained in:
parent
fa38c73642
commit
cc10282298
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182059
@ -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 (E2BIG);
|
||||
return (EOVERFLOW);
|
||||
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 New Issue
Block a user