[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.2-testing] xenstore: fix canonicalize for metanodes
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1207755894 -3600 # Node ID a9557e0d16a7d0638fc94b5a6f31f8f77aacc7e6 # Parent 2fa13df6b409a8f9eb1a4fbb01809981e38c740d xenstore: fix canonicalize for metanodes Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx> xen-unstable changeset: 17418:506c21c5c55547b9445b4f97428e40b5abc7feaa xen-unstable date: Wed Apr 09 15:59:54 2008 +0100 --- tools/xenstore/xenstored_core.c | 2 +- tools/xenstore/xenstored_watch.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff -r 2fa13df6b409 -r a9557e0d16a7 tools/xenstore/xenstored_core.c --- a/tools/xenstore/xenstored_core.c Wed Apr 09 16:44:16 2008 +0100 +++ b/tools/xenstore/xenstored_core.c Wed Apr 09 16:44:54 2008 +0100 @@ -712,7 +712,7 @@ char *canonicalize(struct connection *co { const char *prefix; - if (!node || strstarts(node, "/")) + if (!node || (node[0] == '/') || (node[0] == '@')) return (char *)node; prefix = get_implicit_path(conn); if (prefix) diff -r 2fa13df6b409 -r a9557e0d16a7 tools/xenstore/xenstored_watch.c --- a/tools/xenstore/xenstored_watch.c Wed Apr 09 16:44:16 2008 +0100 +++ b/tools/xenstore/xenstored_watch.c Wed Apr 09 16:44:54 2008 +0100 @@ -183,7 +183,7 @@ void do_unwatch(struct connection *conn, return; } - node = strstarts(vec[0], "@") ? vec[0] : canonicalize(conn, vec[0]); + node = 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |