From: Andre Noll Date: Tue, 24 Jul 2012 06:42:23 +0000 (+0200) Subject: com_init(): Send error message only for non-sideband connections. X-Git-Tag: v0.4.12~47 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=30112f921d2bc97160e4b7ef3762a9ad3ad15ea3 com_init(): Send error message only for non-sideband connections. If com_init() fails, this non-sideband error message is currently sent also for sideband connections, which confuses the client. Send it only for non-sideband connections. --- diff --git a/afs.c b/afs.c index a1381e73..f1e28f14 100644 --- a/afs.c +++ b/afs.c @@ -1063,7 +1063,7 @@ int com_init(struct command_context *cc) } ret = send_callback_request(create_tables_callback, &query, afs_cb_result_handler, cc); - if (ret < 0) + if (ret < 0 && !cc->use_sideband) /* ignore return value */ sc_send_va_buffer(&cc->scc, "%s\n", para_strerror(-ret)); return ret;