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] Fix Xenstore unwatch with node name starting with "@

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Fix Xenstore unwatch with node name starting with "@"
From: "Yang, Xiaowei" <xiaowei.yang@xxxxxxxxx>
Date: Wed, 17 Oct 2007 12:46:57 +0800
Delivery-date: Tue, 16 Oct 2007 21:52:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcgQeL+VppHuBpoeSB+DkcFQK7dAnw==
Thread-topic: [PATCH] Fix Xenstore unwatch with node name starting with "@"
Watch node starting with "@" should not be canonicalized.
Signed-off-by: Xiaowei Yang <xiaowei.yang@xxxxxxxxx>

diff -r 8cc1c7cc1243 tools/xenstore/xenstored_watch.c
--- a/tools/xenstore/xenstored_watch.c  Mon Oct 15 12:28:29 2007 +0800
+++ b/tools/xenstore/xenstored_watch.c  Mon Oct 15 18:56:31 2007 +0800
@@ -172,7 +172,7 @@ void do_unwatch(struct connection *conn,
                return;
        }

-       node = canonicalize(conn, vec[0]);
+       node = strstarts(vec[0], "@") ? vec[0] : canonicalize(conn,
vec[0]);
        list_for_each_entry(watch, &conn->watches, list) {
                if (streq(watch->node, node) && streq(watch->token,
vec[1])) {
                        list_del(&watch->list);

Regards, 
Xiaowei 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix Xenstore unwatch with node name starting with "@", Yang, Xiaowei <=