X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fdebug.c;h=f80a1ca2138734e0d40fe3c6f76e68a60fe9ef50;hb=3f54bd02fcf540f9b4b6edc93f3b6b9c7ba136bd;hp=cd3e8a5f0294a910782b38552d2b0757869f862c;hpb=f4d996fd26762053d68f46de5790aae893f03d38;p=libguestfs.git diff --git a/daemon/debug.c b/daemon/debug.c index cd3e8a5..f80a1ca 100644 --- a/daemon/debug.c +++ b/daemon/debug.c @@ -88,7 +88,7 @@ do_debug (const char *subcmd, char *const *argv) return cmds[i].f (subcmd, argc, argv); } - reply_with_error ("use 'debug help' to list the supported commands"); + reply_with_error ("use 'debug help 0' to list the supported commands"); return NULL; } @@ -549,10 +549,6 @@ do_debug_upload (const char *filename, int mode) } if (close (fd) == -1) { - int err = errno; - if (r == -1) /* if r == 0, file transfer ended already */ - cancel_receive (); - errno = err; reply_with_perror ("close: %s", filename); return -1; }