aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore
diff options
context:
space:
mode:
Diffstat (limited to 'tools/xenstore')
-rw-r--r--tools/xenstore/xenstored_watch.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}