From: Richard Jones Date: Wed, 8 Sep 2010 15:42:06 +0000 (+0100) Subject: daemon: Fix debug-upload command if compiled without --enable-debug. X-Git-Tag: 1.4.5~1 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=b7a4ec83fbfb5e5d91e5cb72a88f532f39f6ab41;p=libguestfs.git daemon: Fix debug-upload command if compiled without --enable-debug. This was an upstream bug which we never encountered, and meanwhile was fixed upstream by removing the conditional --enable-debug code. --- diff --git a/daemon/debug.c b/daemon/debug.c index 0867ccd..11a26c3 100644 --- a/daemon/debug.c +++ b/daemon/debug.c @@ -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 }