diff options
author | Thomas Adam <thomas@xteddy.org> | 2020-01-05 14:01:23 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2020-01-05 14:01:23 +0000 |
commit | 36169d8a684f27e5fc052e6c0cb97cb683cbf41a (patch) | |
tree | 540e6d519b5833a7173fb0a42a292abb5c9e8ea9 | |
parent | 6d3d47c25b155c9bc0ea88f13ccc057c67eabdf1 (diff) | |
parent | 7c6c66cc3cc40b663fc2ba8573f26a6aa4cb291e (diff) |
Merge branch 'obsd-master'
-rw-r--r-- | cmd-queue.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd-queue.c b/cmd-queue.c index 75b5d8f9..59c7a35c 100644 --- a/cmd-queue.c +++ b/cmd-queue.c @@ -551,7 +551,10 @@ cmdq_error(struct cmdq_item *item, const char *fmt, ...) msg = utf8_sanitize(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; } else { *msg = toupper((u_char) *msg); |