From cacf9acf525a76c5d2f2d0acd3915fff3d54939a Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Thu, 16 Dec 2010 18:04:08 +0000 Subject: xenstore: set implicit path for socket connections For now assume all such connections come from domain 0. Failure to do this breaks various scripts which assume that they operate relative to the domains "home directory". This matches the behaviour of the ocaml xenstored. Thanks to report from Olaf Hering. Signed-off-by: Ian Campbell Signed-off-by: Ian Jackson --- tools/xenstore/xenstored_domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/xenstore') diff --git a/tools/xenstore/xenstored_domain.c b/tools/xenstore/xenstored_domain.c index 53fb68f21d..7aa87cd022 100644 --- a/tools/xenstore/xenstored_domain.c +++ b/tools/xenstore/xenstored_domain.c @@ -547,7 +547,7 @@ static int close_xc_handle(void *_handle) const char *get_implicit_path(const struct connection *conn) { if (!conn->domain) - return NULL; + return "/local/domain/0"; return conn->domain->path; } -- cgit v1.2.3