ia64/xen-unstable

changeset 16143:86bd91e90eec

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>
author Keir Fraser <keir@xensource.com>
date Wed Oct 17 10:02:49 2007 +0100 (2007-10-17)
parents 786a210e7cab
children 76bf1fcaf01d
files tools/xenstore/xenstored_watch.c
line diff
     1.1 --- a/tools/xenstore/xenstored_watch.c	Wed Oct 17 10:00:27 2007 +0100
     1.2 +++ b/tools/xenstore/xenstored_watch.c	Wed Oct 17 10:02:49 2007 +0100
     1.3 @@ -170,7 +170,7 @@ void do_unwatch(struct connection *conn,
     1.4  		return;
     1.5  	}
     1.6  
     1.7 -	node = canonicalize(conn, vec[0]);
     1.8 +	node = strstarts(vec[0], "@") ? vec[0] : canonicalize(conn, vec[0]);
     1.9  	list_for_each_entry(watch, &conn->watches, list) {
    1.10  		if (streq(watch->node, node) && streq(watch->token, vec[1])) {
    1.11  			list_del(&watch->list);