From 2eb54a2b4a65483cf8fc889c3fff77f7a5db4764 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Thu, 21 Oct 2010 17:56:51 +0100 Subject: xenstored: return EINVAL for attempt to watch invalid path errno is essentially random at this point. Signed-off-by: Ian Campbell Signed-off-by: Ian Jackson --- tools/xenstore/xenstored_watch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/xenstore') diff --git a/tools/xenstore/xenstored_watch.c b/tools/xenstore/xenstored_watch.c index 16d30899d4..65d4025239 100644 --- a/tools/xenstore/xenstored_watch.c +++ b/tools/xenstore/xenstored_watch.c @@ -134,7 +134,7 @@ void do_watch(struct connection *conn, struct buffered_data *in) 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; } } -- cgit v1.2.3