From: Stefan Berger Subject: [PATCH] [XM] Fix a bug in the rmlabel tool Date: Sat, 30 Sep 2006 10:57:38 -0400 Message-ID: <1159628258.15201.10.camel@941e-2.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-08//0usBOZ02KnAeLtbF" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: Ewan Mellor List-Id: xen-devel@lists.xenproject.org --=-08//0usBOZ02KnAeLtbF Content-Type: text/plain Content-Transfer-Encoding: 7bit The patch fixes a bug in the rmlabel tool. Signed-off-by: Stefan Berger --=-08//0usBOZ02KnAeLtbF Content-Disposition: attachment; filename=xm-rmlabel-fix.diff Content-Type: text/x-patch; name=xm-rmlabel-fix.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: root/xen-unstable.hg/tools/python/xen/xm/rmlabel.py =================================================================== --- root.orig/xen-unstable.hg/tools/python/xen/xm/rmlabel.py +++ root/xen-unstable.hg/tools/python/xen/xm/rmlabel.py @@ -57,7 +57,8 @@ def rm_domain_label(configfile): fd = None file = None if configfile[0] == '/': - fd = open(configfile, "rb") + file = configfile + fd = open(file, "rb") else: for prefix in [".", "/etc/xen"]: file = prefix + "/" + configfile --=-08//0usBOZ02KnAeLtbF Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-08//0usBOZ02KnAeLtbF--