From owner-p4-projects@FreeBSD.ORG Fri Feb 10 06:35:17 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 0729F16A423; Fri, 10 Feb 2006 06:35:17 +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 BE8DF16A420 for ; Fri, 10 Feb 2006 06:35:16 +0000 (GMT) (envelope-from csjp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BDE843D45 for ; Fri, 10 Feb 2006 06:35:16 +0000 (GMT) (envelope-from csjp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1A6ZGq4080895 for ; Fri, 10 Feb 2006 06:35:16 GMT (envelope-from csjp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1A6ZGrQ080892 for perforce@freebsd.org; Fri, 10 Feb 2006 06:35:16 GMT (envelope-from csjp@freebsd.org) Date: Fri, 10 Feb 2006 06:35:16 GMT Message-Id: <200602100635.k1A6ZGrQ080892@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to csjp@freebsd.org using -f From: "Christian S.J. Peron" To: Perforce Change Reviews Cc: Subject: PERFORCE change 91493 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: Fri, 10 Feb 2006 06:35:17 -0000 http://perforce.freebsd.org/chv.cgi?CH=91493 Change 91493 by csjp@csjp_xor on 2006/02/10 06:34:52 It is alright to use err(3) instead of errx(3) here, as auditon(2) will set errno when it fails Affected files ... .. //depot/projects/trustedbsd/audit3/usr.bin/login/login_audit.c#10 edit Differences ... ==== //depot/projects/trustedbsd/audit3/usr.bin/login/login_audit.c#10 (text+ko) ==== @@ -72,7 +72,7 @@ if (auditon(A_GETCOND, &au_cond, sizeof(long)) < 0) { if (errno == ENOSYS) return; - errx(1, "login: Could not determine audit condition"); + err(1, "login: Could not determine audit condition"); } if (au_cond == AUC_NOAUDIT) return; @@ -125,7 +125,7 @@ if (auditon(A_GETCOND, &au_cond, sizeof(long)) < 0) { if (errno == ENOSYS) return; - errx(1, "login: Could not determine audit condition"); + err(1, "login: Could not determine audit condition"); } if (au_cond == AUC_NOAUDIT) return;