From: Wei Liu Date: Tue, 13 Oct 2015 13:40:28 +0000 (+0100) Subject: cxenstored: avoid using hardcoded paths X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7a9203633ef8a7f215deee531d47aa203f195395;p=people%2Froyger%2Fxen.git cxenstored: avoid using hardcoded paths Use library functions which return socket paths instead. Signed-off-by: Wei Liu Acked-by: Ian Campbell --- diff --git a/tools/xenstore/xenstored_core.c b/tools/xenstore/xenstored_core.c index 25a548dc44..3c0307e143 100644 --- a/tools/xenstore/xenstored_core.c +++ b/tools/xenstore/xenstored_core.c @@ -1769,8 +1769,8 @@ static int xs_get_sd_fd(const char *connect_to) static int xs_validate_active_socket(const char *connect_to) { - if ((strcmp("/var/run/xenstored/socket_ro", connect_to) != 0) && - (strcmp("/var/run/xenstored/socket", connect_to) != 0)) { + if ((strcmp(xs_daemon_socket_ro(), connect_to) != 0) && + (strcmp(xs_daemon_socket(), connect_to) != 0)) { sd_notifyf(0, "STATUS=unexpected socket: %s\n" "ERRNO=%i", connect_to,