|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-3.1-testing] Fix xenstore unwatch with node name st
# HG changeset patch
# User Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1192611769 -3600
# Node ID 8296e765fa6800144550dc2b000a0073e803e985
# Parent bae8d8151242959f4c3bbc40e465dd0ba57c6a7b
Fix xenstore unwatch with node name starting with "@"
Watch node starting with "@" should not be canonicalized.
Signed-off-by: Xiaowei Yang <xiaowei.yang@xxxxxxxxx>
xen-unstable changeset: 16122:86bd91e90eec5da1dce9f25cd101a7034dec67cc
xen-unstable date: Wed Oct 17 10:02:49 2007 +0100
---
tools/xenstore/xenstored_watch.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r bae8d8151242 -r 8296e765fa68 tools/xenstore/xenstored_watch.c
--- a/tools/xenstore/xenstored_watch.c Tue Oct 16 09:30:20 2007 +0100
+++ b/tools/xenstore/xenstored_watch.c Wed Oct 17 10:02:49 2007 +0100
@@ -170,7 +170,7 @@ void do_unwatch(struct connection *conn,
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);
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-3.1-testing] Fix xenstore unwatch with node name starting with "@",
Xen patchbot-3.1-testing <=
|
|
|
|
|