[sudo-commits] sudo changeset 14257:14f5bf04245f
Todd C. Miller
Todd.Miller at sudo.ws
Thu Oct 20 09:29:12 MDT 2022
changeset: 14257:14f5bf04245f in /raid/repos/sudo
details: https://www.sudo.ws/repos/sudo/rev/14f5bf04245f
user: Todd C. Miller <Todd.Miller at sudo.ws>
date: Thu Oct 20 08:55:26 2022 -0600
Log Message:
Only add trailing carriage return to messages if output is a raw tty.
If output is being written to a terminal in "raw" mode, we need to
add a carriage return after the newline to avoid "stair-step" output.
However, we should not write the carriage return if the terminal
is in "cooked" mode, output to a pipe, or output redirected to a file.
Bug #1042.
diffstat:
include/sudo_util.h | 2 ++
lib/util/fatal.c | 2 +-
lib/util/term.c | 24 ++++++++++++++++++++++++
lib/util/util.exp.in | 1 +
src/conversation.c | 23 +++++++++++++++--------
5 files changed, 43 insertions(+), 9 deletions(-)
More information about the sudo-commits
mailing list