mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
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>
This commit is contained in:
1 parent
d62f502aaa
commit
3e43914aa8
1 file changed
+1
-1
@@ -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);
|
||||
|
||||