]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix daemon hook script initialization
authorDaniel Veillard <veillard@redhat.com>
Tue, 30 Mar 2010 13:06:13 +0000 (15:06 +0200)
committerDaniel Veillard <veillard@redhat.com>
Tue, 30 Mar 2010 13:06:13 +0000 (15:06 +0200)
* daemon/libvirtd.c: we should error out only if virHookInitialize()
  return value is negative

daemon/libvirtd.c

index 4bdf4e261d4a232ab92f561f360638e67da819e3..208ffcacb0d4cca4526962010def359dbf6440dc 100644 (file)
@@ -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;
     }