From b7a4ec83fbfb5e5d91e5cb72a88f532f39f6ab41 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Wed, 8 Sep 2010 16:42:06 +0100 Subject: [PATCH] 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. --- daemon/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 1.8.3.1