[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Fix Xenstore unwatch with node name starting with "@"


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.