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:
Keir Fraser committed 2007-10-17 10:02:49 +01:00
1 parent d62f502aaa
commit 3e43914aa8
1 file changed
+1 -1
+1 -1
View File
@@ -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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.