Call au_errno_to_bsm() on the errno value passed into au_to_return32()

to convert local FreeBSD error numbers into BSM error numbers.

Obtained from:	TrustedBSD Project
This commit is contained in:
Robert Watson 2008-12-31 11:56:35 +00:00
parent f8349101a6
commit fcdb2e9607
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=186649

View File

@ -1462,7 +1462,7 @@ kaudit_to_bsm(struct kaudit_record *kar, struct au_record **pau)
}
kau_write(rec, subj_tok);
tok = au_to_return32((char)ar->ar_errno, ar->ar_retval);
tok = au_to_return32(au_errno_to_bsm(ar->ar_errno), ar->ar_retval);
kau_write(rec, tok); /* Every record gets a return token */
kau_close(rec, &ar->ar_endtime, ar->ar_event);