[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |