PERFORCE change 133697 for review

Christian S.J. Peron csjp at FreeBSD.org
Sat Jan 19 16:24:10 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=133697

Change 133697 by csjp at 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);
 	}


More information about the p4-projects mailing list