From owner-p4-projects@FreeBSD.ORG Mon Jul 11 13:14:55 2005 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 2251816A41C; Mon, 11 Jul 2005 13:14:54 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5DA1916A41C for ; Mon, 11 Jul 2005 13:14:54 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CA4F43D5D for ; Mon, 11 Jul 2005 13:14:54 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j6BDErOt050423 for ; Mon, 11 Jul 2005 13:14:53 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j6BDErLm050420 for perforce@freebsd.org; Mon, 11 Jul 2005 13:14:53 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Mon, 11 Jul 2005 13:14:53 GMT Message-Id: <200507111314.j6BDErLm050420@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 79987 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2005 13:14:55 -0000 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);