daemon: Fix debug-upload command if compiled without --enable-debug.
authorRichard Jones <rjones@redhat.com>
Wed, 8 Sep 2010 15:42:06 +0000 (16:42 +0100)
committerRichard Jones <rjones@redhat.com>
Wed, 8 Sep 2010 15:43:16 +0000 (16:43 +0100)
This was an upstream bug which we never encountered, and meanwhile
was fixed upstream by removing the conditional --enable-debug code.

daemon/debug.c

index 0867ccd..11a26c3 100644 (file)
@@ -394,6 +394,6 @@ do_debug_upload (const char *filename MAYBE_UNUSED, int mode MAYBE_UNUSED)
   return 0;
 #else
   reply_with_error ("guestfsd was not configured with --enable-debug-command");
-  return NULL;
+  return -1;
 #endif
 }