Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam 2020-01-05 14:01:23 +00:00
commit 36169d8a68

View File

@ -551,7 +551,10 @@ cmdq_error(struct cmdq_item *item, const char *fmt, ...)
msg = utf8_sanitize(tmp); msg = utf8_sanitize(tmp);
free(tmp); free(tmp);
} }
file_error(c, "%s\n", msg); if (c->flags & CLIENT_CONTROL)
file_print(c, "%s\n", msg);
else
file_error(c, "%s\n", msg);
c->retval = 1; c->retval = 1;
} else { } else {
*msg = toupper((u_char) *msg); *msg = toupper((u_char) *msg);