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] blktap2: Fix broken tap-ctl-list type/pat

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] blktap2: Fix broken tap-ctl-list type/path filter logic
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 10 Jun 2010 02:25:24 -0700
Delivery-date: Thu, 10 Jun 2010 02:27:22 -0700
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 1276154755 -3600
# Node ID a34358c64b63c803fcf51c8b31718946d172eccd
# Parent  07d09ceb291aecea3f8d4bfd3a9bfc213f7f8b9e
blktap2: Fix broken tap-ctl-list type/path filter logic

Signed-off-by: Daniel Stodden <daniel.stodden@xxxxxxxxxx>
---
 tools/blktap2/control/tap-ctl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 07d09ceb291a -r a34358c64b63 tools/blktap2/control/tap-ctl.c
--- a/tools/blktap2/control/tap-ctl.c   Thu Jun 10 08:25:10 2010 +0100
+++ b/tools/blktap2/control/tap-ctl.c   Thu Jun 10 08:25:55 2010 +0100
@@ -147,10 +147,10 @@ tap_cli_list(int argc, char **argv)
                if (pid >= 0 && entry->pid != pid)
                        continue;
 
-               if (type && entry->type && strcmp(entry->type, type))
+               if (type && (!entry->type || strcmp(entry->type, type)))
                        continue;
 
-               if (file && entry->path && strcmp(entry->path, file))
+               if (file && (!entry->path || strcmp(entry->path, file)))
                        continue;
 
                if (tty)

_______________________________________________
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] blktap2: Fix broken tap-ctl-list type/path filter logic, Xen patchbot-unstable <=