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-unstable] xenstored: return EINVAL for attempt to w

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xenstored: return EINVAL for attempt to watch invalid path
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 22 Oct 2010 16:10:13 -0700
Delivery-date: Fri, 22 Oct 2010 16:10:20 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/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 Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1287680211 -3600
# Node ID dcdb3805262ae8a0810eff9bb2da9604afd2ad61
# Parent  00b92112b055996b34f1fd021706c432acb90f89
xenstored: return EINVAL for attempt to watch invalid path

errno is essentially random at this point.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 tools/xenstore/xenstored_watch.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 00b92112b055 -r dcdb3805262a tools/xenstore/xenstored_watch.c
--- a/tools/xenstore/xenstored_watch.c  Wed Oct 20 17:26:51 2010 +0100
+++ b/tools/xenstore/xenstored_watch.c  Thu Oct 21 17:56:51 2010 +0100
@@ -134,7 +134,7 @@ void do_watch(struct connection *conn, s
                relative = !strstarts(vec[0], "/");
                vec[0] = canonicalize(conn, vec[0]);
                if (!is_valid_nodename(vec[0])) {
-                       send_error(conn, errno);
+                       send_error(conn, EINVAL);
                        return;
                }
        }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xenstored: return EINVAL for attempt to watch invalid path, Xen patchbot-unstable <=