aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-10-17 10:02:49 +0100
committerKeir Fraser <keir@xensource.com>2007-10-17 10:02:49 +0100
commit3e43914aa8f2b569d99da99ce412e3a47e1906c7 (patch)
tree4aceabaf7e1537aa9104d1c013bd29f1412bb215 /tools/xenstore
parentd62f502aaa01b1da046f973555134586a31a5a7d (diff)
downloadxen-3e43914aa8f2b569d99da99ce412e3a47e1906c7.tar.gz
xen-3e43914aa8f2b569d99da99ce412e3a47e1906c7.tar.bz2
xen-3e43914aa8f2b569d99da99ce412e3a47e1906c7.zip
Fix xenstore unwatch with node name starting with "@"
Watch node starting with "@" should not be canonicalized. Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
Diffstat (limited to 'tools/xenstore')
-rw-r--r--tools/xenstore/xenstored_watch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/xenstore/xenstored_watch.c b/tools/xenstore/xenstored_watch.c
index f5692f83e5..5fa8bbbe22 100644
--- a/tools/xenstore/xenstored_watch.c
+++ b/tools/xenstore/xenstored_watch.c
@@ -170,7 +170,7 @@ void do_unwatch(struct connection *conn, struct buffered_data *in)
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);