Date: Mon, 26 Sep 2005 11:33:44 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 84286 for review Message-ID: <200509261133.j8QBXiK3080641@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=84286 Change 84286 by rwatson@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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509261133.j8QBXiK3080641>