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-changelog

[Xen-changelog] [xen-unstable] xl: Do not duplicate last line of config

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xl: Do not duplicate last line of config file when trying compat mode.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 03 Feb 2010 01:55:27 -0800
Delivery-date: Wed, 03 Feb 2010 01:56:49 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1265190325 0
# Node ID b48b5e68847004aeed118d8941cb4b95578eb2e5
# Parent  2a775968c7a1614d9a799c44d7eec170340d573d
xl: Do not duplicate last line of config file when trying compat mode.

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 tools/libxl/xl.c |    1 +
 1 files changed, 1 insertion(+)

diff -r 2a775968c7a1 -r b48b5e688470 tools/libxl/xl.c
--- a/tools/libxl/xl.c  Wed Feb 03 09:45:02 2010 +0000
+++ b/tools/libxl/xl.c  Wed Feb 03 09:45:25 2010 +0000
@@ -344,6 +344,7 @@ static char* compat_config_file(const ch
     }
 
     while (!feof(s)) {
+        buf[0] = 0;
         fgets(buf, size, s);
         while (buf[strlen(buf) - 1] != '\n' && !feof(s)) {
             size += 1024;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xl: Do not duplicate last line of config file when trying compat mode., Xen patchbot-unstable <=