if (tok == NULL)
fatal("au_to_return32");
au_write(aufd, tok);
+#ifdef __sun
+ if (au_close(aufd, 1, AUE_sudo, 0) == -1)
+#else
if (au_close(aufd, 1, AUE_sudo) == -1)
+#endif
fatal(_("unable to commit audit record"));
debug_return;
}
/*
* If we are not auditing, don't cut an audit record; just return.
*/
- if (auditon(A_GETCOND, &au_cond, sizeof(long)) < 0) {
+ if (auditon(A_GETCOND, (caddr_t)&au_cond, sizeof(long)) < 0) {
if (errno == AUDIT_NOT_CONFIGURED)
debug_return;
fatal(_("Could not determine audit condition"));
if (tok == NULL)
fatal("au_to_return32");
au_write(aufd, tok);
+#ifdef __sun
+ if (au_close(aufd, 1, AUE_sudo, PAD_FAILURE) == -1)
+#else
if (au_close(aufd, 1, AUE_sudo) == -1)
+#endif
fatal(_("unable to commit audit record"));
debug_return;
}