PERFORCE change 79987 for review
Robert Watson
rwatson at FreeBSD.org
Mon Jul 11 13:14:53 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=79987
Change 79987 by rwatson at rwatson_paprika on 2005/07/11 13:14:50
Since auditctl() now accepts a path directly, pass it a path
directly.
Affected files ...
.. //depot/projects/trustedbsd/audit3/usr.sbin/auditon/auditon.c#5 edit
Differences ...
==== //depot/projects/trustedbsd/audit3/usr.sbin/auditon/auditon.c#5 (text+ko) ====
@@ -56,11 +56,11 @@
usage();
if (strcmp(argv[1], "off") == 0) {
- if (auditctl(AC_SHUTDOWN, NULL, 0) != 0)
+ if (auditctl(NULL) != 0)
errx(-1, "Shutdown %s", strerror(errno));
} else {
path = argv[1];
- if (auditctl(AC_SETLOGFILE, &path, sizeof(path)) != 0)
+ if (auditctl(path) != 0)
errx(-1, "%s: %s", path, strerror(errno));
}
exit(0);
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