WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-3.1-testing] xenstore: fix canonicalize for metanod

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.1-testing] xenstore: fix canonicalize for metanodes
From: "Xen patchbot-3.1-testing" <patchbot-3.1-testing@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 09 Apr 2008 09:10:40 -0700
Delivery-date: Wed, 09 Apr 2008 09:11:04 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1207756775 -3600
# Node ID fe6e23c8ed76f9124e0c983eeb668dbd33ad34cb
# Parent  f09ebcbd239e3572ee8b607d5aa16595614de838
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 f09ebcbd239e -r fe6e23c8ed76 tools/xenstore/xenstored_core.c
--- a/tools/xenstore/xenstored_core.c   Wed Apr 09 16:59:14 2008 +0100
+++ b/tools/xenstore/xenstored_core.c   Wed Apr 09 16:59:35 2008 +0100
@@ -690,7 +690,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 f09ebcbd239e -r fe6e23c8ed76 tools/xenstore/xenstored_watch.c
--- a/tools/xenstore/xenstored_watch.c  Wed Apr 09 16:59:14 2008 +0100
+++ b/tools/xenstore/xenstored_watch.c  Wed Apr 09 16:59:35 2008 +0100
@@ -170,7 +170,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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.1-testing] xenstore: fix canonicalize for metanodes, Xen patchbot-3.1-testing <=