From 3e43914aa8f2b569d99da99ce412e3a47e1906c7 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 17 Oct 2007 10:02:49 +0100 Subject: [PATCH] Fix xenstore unwatch with node name starting with "@" Watch node starting with "@" should not be canonicalized. Signed-off-by: Xiaowei Yang --- tools/xenstore/xenstored_watch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2