PERFORCE change 84286 for review
Robert Watson
rwatson at FreeBSD.org
Mon Sep 26 11:33:44 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=84286
Change 84286 by rwatson at rwatson_zoo on 2005/09/26 11:33:34
For now, assume that if auditon() returns ENOSYS, then audit is not
configured.
Affected files ...
.. //depot/projects/trustedbsd/audit3/usr.bin/login/login.c#5 edit
Differences ...
==== //depot/projects/trustedbsd/audit3/usr.bin/login/login.c#5 (text+ko) ====
@@ -820,6 +820,8 @@
/* If we are not auditing, don't cut an audit record; just return */
if (auditon(A_GETCOND, &au_cond, sizeof(long)) < 0) {
+ if (errno == ENOSYS)
+ return;
fprintf(stderr, "login: Could not determine audit condition\n");
exit(1);
}
@@ -890,6 +892,8 @@
/* If we are not auditing, don't cut an audit record; just return */
if (auditon(A_GETCOND, &au_cond, sizeof(long)) < 0) {
+ if (errno == ENOSYS)
+ return;
fprintf(stderr, "login: Could not determine audit condition\n");
exit(1);
}
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list