diff options
author | rwatson <rwatson@FreeBSD.org> | 2008-08-24 19:55:10 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2008-08-24 19:55:10 +0000 |
commit | 7815fba39ce6f74cc464897ee3447ac267c8ed3d (patch) | |
tree | aa9368daa41f32e51c04cc7b1e2ee517bd340fe9 /sys/security | |
parent | 149600a3ddad2aafd0fa943d7511dd1e48d0e4b9 (diff) | |
download | FreeBSD-src-7815fba39ce6f74cc464897ee3447ac267c8ed3d.zip FreeBSD-src-7815fba39ce6f74cc464897ee3447ac267c8ed3d.tar.gz |
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
Diffstat (limited to 'sys/security')
-rw-r--r-- | sys/security/audit/audit_syscalls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/audit/audit_syscalls.c b/sys/security/audit/audit_syscalls.c index de7ca1c..3043539 100644 --- a/sys/security/audit/audit_syscalls.c +++ b/sys/security/audit/audit_syscalls.c @@ -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; |