From owner-p4-projects@FreeBSD.ORG Wed Nov 29 20:40:00 2006 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 036B716A5D4; Wed, 29 Nov 2006 20:39:59 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5D20D16A5B5 for ; Wed, 29 Nov 2006 20:39:59 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id D016B43DD6 for ; Wed, 29 Nov 2006 20:39:24 +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.6/8.13.6) with ESMTP id kATKFKud076853 for ; Wed, 29 Nov 2006 20:15:20 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kATKFKgx076849 for perforce@freebsd.org; Wed, 29 Nov 2006 20:15:20 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Wed, 29 Nov 2006 20:15:20 GMT Message-Id: <200611292015.kATKFKgx076849@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 110689 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: Wed, 29 Nov 2006 20:40:00 -0000 http://perforce.freebsd.org/chv.cgi?CH=110689 Change 110689 by rwatson@rwatson_fledge on 2006/11/29 20:15:09 Swap incorrect argument order when converting policy entries to strings in audump. Affected files ... .. //depot/projects/trustedbsd/openbsm/tools/audump.c#7 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/tools/audump.c#7 (text+ko) ==== @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/openbsm/tools/audump.c#6 $ + * $P4: //depot/projects/trustedbsd/openbsm/tools/audump.c#7 $ */ #include @@ -123,7 +123,7 @@ err(-1, "getacpol"); if (au_strtopol(string, &policy) < 0) err(-1, "au_strtopol"); - if (au_poltostr(policy, string2, PATH_MAX) < 0) + if (au_poltostr(policy, PATH_MAX, string2) < 0) err(-1, "au_poltostr"); printf("policy:%s\n", string2); }