From: Ian Campbell Date: Thu, 16 Dec 2010 18:04:08 +0000 (+0000) Subject: xenstore: set implicit path for socket connections X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cacf9acf525a76c5d2f2d0acd3915fff3d54939a;p=xen.git 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 --- 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; }