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

[Xen-devel] [PATCH] xl: Do not duplicate last line of compat config file

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] xl: Do not duplicate last line of compat config file
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Tue, 2 Feb 2010 17:22:32 +0000
Delivery-date: Tue, 02 Feb 2010 09:23:26 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
# Date 1265125656 0
# Node ID 72c359823655427fed7418f0a1cdd39d496ec571
# Parent  d0b431ede24b0428b635db40fe6177f5d9af3a7d
xl: Do not duplicate last line of config file when trying compat mode.

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>

diff -r d0b431ede24b -r 72c359823655 tools/libxl/xl.c
--- a/tools/libxl/xl.c  Mon Feb 01 14:03:47 2010 +0000
+++ b/tools/libxl/xl.c  Tue Feb 02 15:47:36 2010 +0000
@@ -344,6 +344,7 @@
     }
 
     while (!feof(s)) {
+        buf[0] = 0;
         fgets(buf, size, s);
         while (buf[strlen(buf) - 1] != '\n' && !feof(s)) {
             size += 1024;

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] xl: Do not duplicate last line of compat config file, Ian Jackson <=