aboutsummaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-22 17:32:48 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-22 17:32:48 +0100
commit3de590b8b2c3c0eb8a4fbacf877867ce7e6fca10 (patch)
treec050ed54666371a37a7991a60611d85b7c356747 /src/client
parentc2558b04ff929ccc4a61e05bab7ec502d014f58d (diff)
downloadrspamd-3de590b8b2c3c0eb8a4fbacf877867ce7e6fca10.tar.gz
rspamd-3de590b8b2c3c0eb8a4fbacf877867ce7e6fca10.zip
Fix output for input-less commands.
Diffstat (limited to 'src/client')
-rw-r--r--src/client/rspamc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/rspamc.c b/src/client/rspamc.c
index ebf0daed7..ee3d30042 100644
--- a/src/client/rspamc.c
+++ b/src/client/rspamc.c
@@ -509,7 +509,12 @@ rspamc_client_cb (struct rspamd_client_connection *conn,
struct rspamc_command *cmd;
cmd = cbdata->cmd;
- rspamd_fprintf (stdout, "Results for file: %s\n", cbdata->filename);
+ if (cmd->need_input) {
+ rspamd_fprintf (stdout, "Results for file: %s\n", cbdata->filename);
+ }
+ else {
+ rspamd_fprintf (stdout, "Results for command: %s\n", cmd->name);
+ }
if (result != NULL) {
if (headers && msg != NULL) {
rspamc_output_headers (msg);