[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xenstored: return EINVAL for attempt to watch invalid path
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |