WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH] CA-38046: remove CRs (^M) from audit-log records

To: xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] [PATCH] CA-38046: remove CRs (^M) from audit-log records
From: Marcus Granado <marcus.granado@xxxxxxxxxx>
Date: Fri, 19 Feb 2010 17:51:54 +0000
Delivery-date: Fri, 19 Feb 2010 09:51:29 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Marcus Granado <marcus.granado@xxxxxxxxxx>
# Date 1266601820 0
# Node ID 3f967a4cfdc6de93bf2b943df0467447bef489f0
# Parent  f2fcd9107ff04bdf6b32f1870f7ad15bba73746f
CA-38046: remove CRs (^M) from audit-log records

because Windows c# thinks CRs are newlines.

Signed-off-by: Marcus Granado <marcus.granado@xxxxxxxxxxxxx>

diff -r f2fcd9107ff0 -r 3f967a4cfdc6 ocaml/idl/ocaml_backend/rbac_audit.ml
--- a/ocaml/idl/ocaml_backend/rbac_audit.ml     Fri Feb 19 15:12:07 2010 +0000
+++ b/ocaml/idl/ocaml_backend/rbac_audit.ml     Fri Feb 19 17:50:20 2010 +0000
@@ -330,6 +330,8 @@
                )
        in
        let line = Stringext.String.replace "\n" " " _line in (* no \n in line 
*)
+       let line = Stringext.String.replace "\r" " " line in (* no \r in line *)
+
        let audit_line = append_line "%s" line in
        (*D.debug "line=%s, audit_line=%s" line audit_line;*)
        match !fn_append_to_master_audit_log with 
1 file changed, 2 insertions(+)
ocaml/idl/ocaml_backend/rbac_audit.ml |    2 ++


Attachment: xen-api.hg.patch
Description: Text Data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] [PATCH] CA-38046: remove CRs (^M) from audit-log records, Marcus Granado <=