diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2010-10-21 17:56:51 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2010-10-21 17:56:51 +0100 |
commit | 2eb54a2b4a65483cf8fc889c3fff77f7a5db4764 (patch) | |
tree | ff774a84eaf6f46c8af0b11df97571cfadf58f77 /tools/xenstore | |
parent | 0780df2a52fe136496ffc250e6dbca07b95b904c (diff) | |
download | xen-2eb54a2b4a65483cf8fc889c3fff77f7a5db4764.tar.gz xen-2eb54a2b4a65483cf8fc889c3fff77f7a5db4764.tar.bz2 xen-2eb54a2b4a65483cf8fc889c3fff77f7a5db4764.zip |
xenstored: return EINVAL for attempt to watch invalid path
errno is essentially random at this point.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/xenstore')
-rw-r--r-- | tools/xenstore/xenstored_watch.c | 2 |
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; } } |