mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 07:05:28 +00:00
daemon: Fix error message when libvirtd is missing.
Currently we search along the hard-coded names: SBINDIR "/libvirtd" SBINDIR "/libvirtd_dbg" but if the environment variable $LIBVIRTD_PATH is set to the name of the libvirtd binary, that is used instead. Fix the error message so it accurately reflects current behaviour ($PATH is NOT searched).
This commit is contained in:
parent
481dfbaed4
commit
0e13136a2c
@ -662,8 +662,11 @@ doRemoteOpen(virConnectPtr conn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!(daemonPath = remoteFindDaemonPath())) {
|
if (!(daemonPath = remoteFindDaemonPath())) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Unable to locate libvirtd daemon in $PATH"));
|
_("Unable to locate libvirtd daemon in %s "
|
||||||
|
"(to override, set $LIBVIRTD_PATH to the "
|
||||||
|
"name of the libvirtd binary)"),
|
||||||
|
SBINDIR);
|
||||||
goto failed;
|
goto failed;
|
||||||
}
|
}
|
||||||
if (!(priv->client = virNetClientNewUNIX(sockname,
|
if (!(priv->client = virNetClientNewUNIX(sockname,
|
||||||
|
Loading…
Reference in New Issue
Block a user