Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Feb 2008 16:44:57 GMT
From:      "Christian S.J. Peron" <csjp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 135900 for review
Message-ID:  <200802211644.m1LGivwY048603@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=135900

Change 135900 by csjp@ibm01 on 2008/02/21 16:44:55

	Fix bug while processing host XML attribute for extended header
	tokens.
	
	Submitted by:	Martin Voros

Affected files ...

.. //depot/projects/trustedbsd/openbsm/HISTORY#64 edit
.. //depot/projects/trustedbsd/openbsm/libbsm/bsm_io.c#51 edit

Differences ...

==== //depot/projects/trustedbsd/openbsm/HISTORY#64 (text+ko) ====

@@ -6,6 +6,9 @@
   event there is an error writing the subject token.  This was submitted
   by Diego Giagio.
 - Build support for Mac OS X 10.5.1 submitted by Eric Hall.
+- Fix a bug which resulted in host XML attributes not being printed
+  while processing extended header tokens.  This patch was submitted by
+  Martin Voros.
 
 OpenBSM 1.0
 
@@ -311,4 +314,4 @@
   to support reloading of kernel event table.
 - Allow comments in /etc/security configuration files.
 
-$P4: //depot/projects/trustedbsd/openbsm/HISTORY#63 $
+$P4: //depot/projects/trustedbsd/openbsm/HISTORY#64 $

==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_io.c#51 (text+ko) ====

@@ -32,7 +32,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_io.c#50 $
+ * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_io.c#51 $
  */
 
 #include <sys/types.h>
@@ -996,12 +996,10 @@
 		open_attr(fp, "modifier");
 		print_evmod(fp, tok->tt.hdr32_ex.e_mod, raw);
 		close_attr(fp);
-		/*
-		 * No attribute for additional types.
-		 *
+		open_attr(fp, "host");
 		print_ip_ex_address(fp, tok->tt.hdr32_ex.ad_type,
 		    tok->tt.hdr32_ex.addr);
-		 */
+		close_attr(fp);
 		open_attr(fp, "time");
 		print_sec32(fp, tok->tt.hdr32_ex.s, raw);
 		close_attr(fp);
@@ -1188,12 +1186,10 @@
 		open_attr(fp, "modifier");
 		print_evmod(fp, tok->tt.hdr64_ex.e_mod, raw);
 		close_attr(fp);
-		/*
-		 * No attribute for additional types.
-		 *
+		open_attr(fp, "host");
 		print_ip_ex_address(fp, tok->tt.hdr64_ex.ad_type,
 		    tok->tt.hdr64_ex.addr);
-		 */
+		close_attr(fp);
 		open_attr(fp, "time");
 		print_sec64(fp, tok->tt.hdr64_ex.s, raw);
 		close_attr(fp);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802211644.m1LGivwY048603>