diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2010-12-16 18:04:08 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2010-12-16 18:04:08 +0000 |
commit | cacf9acf525a76c5d2f2d0acd3915fff3d54939a (patch) | |
tree | 7220a2203de0d3b8d003a3d3c5be83f58147ed29 | |
parent | e40c1e449e1aa3e1ab8779b83371198e6e2275c2 (diff) | |
download | xen-cacf9acf525a76c5d2f2d0acd3915fff3d54939a.tar.gz xen-cacf9acf525a76c5d2f2d0acd3915fff3d54939a.tar.bz2 xen-cacf9acf525a76c5d2f2d0acd3915fff3d54939a.zip |
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 <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
-rw-r--r-- | tools/xenstore/xenstored_domain.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |