commit 0ec5cd0704255d056f93041a9492dc13d2ba03d3 Author: Daniel Veillard Date: Tue Mar 30 15:06:13 2010 +0200 Fix daemon hook script initialization * daemon/libvirtd.c: we should error out only if virHookInitialize() return value is negative diff --git a/daemon/libvirtd.c b/daemon/libvirtd.c index 4bdf4e2..208ffca 100644 --- a/daemon/libvirtd.c +++ b/daemon/libvirtd.c @@ -3150,7 +3150,7 @@ int main(int argc, char **argv) { } /* setup the hooks if any */ - if (virHookInitialize()) { + if (virHookInitialize() < 0) { ret = VIR_DAEMON_ERR_HOOKS; goto error; }