diff options
author | Keir Fraser <keir@xensource.com> | 2007-10-17 10:02:49 +0100 |
---|---|---|
committer | Keir Fraser <keir@xensource.com> | 2007-10-17 10:02:49 +0100 |
commit | 3e43914aa8f2b569d99da99ce412e3a47e1906c7 (patch) | |
tree | 4aceabaf7e1537aa9104d1c013bd29f1412bb215 /tools/xenstore/xenstored_watch.c | |
parent | d62f502aaa01b1da046f973555134586a31a5a7d (diff) | |
download | xen-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/xenstored_watch.c')
-rw-r--r-- | tools/xenstore/xenstored_watch.c | 2 |
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); |