提交 391ac4d9 编写于 作者: D Daniel P. Berrange

Activate build dir overrides in libvirtd, virtlockd, virsh & tests

Add calls to virFileActivateDirOverride so that the build dir
overrides are activated.
Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
上级 63a92e72
......@@ -1156,6 +1156,8 @@ int main(int argc, char **argv) {
virUpdateSelfLastChanged(argv[0]);
virFileActivateDirOverride(argv[0]);
if (strstr(argv[0], "lt-libvirtd") ||
strstr(argv[0], "/daemon/.libs/libvirtd")) {
char *tmp = strrchr(argv[0], '/');
......
......@@ -1271,6 +1271,8 @@ int main(int argc, char **argv) {
}
}
virFileActivateDirOverride(argv[0]);
if (!(config = virLockDaemonConfigNew(privileged))) {
VIR_ERROR(_("Can't create initial configuration"));
exit(EXIT_FAILURE);
......
......@@ -678,6 +678,8 @@ int virtTestMain(int argc,
char *oomstr;
#endif
virFileActivateDirOverride(argv[0]);
if (!virFileExists(abs_srcdir))
return EXIT_AM_HARDFAIL;
......
......@@ -3594,6 +3594,8 @@ main(int argc, char **argv)
return EXIT_FAILURE;
}
virFileActivateDirOverride(argv[0]);
if (!(progname = strrchr(argv[0], '/')))
progname = argv[0];
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册