Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jul 2005 13:14:53 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 79987 for review
Message-ID:  <200507111314.j6BDErLm050420@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=79987

Change 79987 by rwatson@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507111314.j6BDErLm050420>