From owner-p4-projects@FreeBSD.ORG Sun Jan 20 00:24:10 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4B8F016A46C; Sun, 20 Jan 2008 00:24:10 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC72516A46B for ; Sun, 20 Jan 2008 00:24:09 +0000 (UTC) (envelope-from csjp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id DAB3C13C458 for ; Sun, 20 Jan 2008 00:24:09 +0000 (UTC) (envelope-from csjp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m0K0O4tA011110 for ; Sun, 20 Jan 2008 00:24:04 GMT (envelope-from csjp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m0K0O4CN011107 for perforce@freebsd.org; Sun, 20 Jan 2008 00:24:04 GMT (envelope-from csjp@freebsd.org) Date: Sun, 20 Jan 2008 00:24:04 GMT Message-Id: <200801200024.m0K0O4CN011107@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 133697 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: Sun, 20 Jan 2008 00:24:10 -0000 http://perforce.freebsd.org/chv.cgi?CH=133697 Change 133697 by csjp@csjp_xor on 2008/01/20 00:23:13 Do not attempt to commit an incomplete record when we are not able to process the subject token. Use AU_TO_NO_WRITE instead of the AU_TO_WRITE argument in au_close() while handling error. Submitted by: Diego Giagio Affected files ... .. //depot/projects/trustedbsd/openbsm/libbsm/bsm_wrappers.c#25 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_wrappers.c#25 (text+ko) ==== @@ -26,7 +26,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_wrappers.c#24 $ + * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_wrappers.c#25 $ */ #ifdef __APPLE__ @@ -285,7 +285,7 @@ if (subject && au_write(aufd, subject) == -1) { au_free_token(subject); au_free_token(misctok); - (void)au_close(aufd, AU_TO_WRITE, event_code); + (void)au_close(aufd, AU_TO_NO_WRITE, event_code); syslog(LOG_ERR, "%s: write of subject failed", func); return (kAUWriteSubjectTokErr); }