[sudo-commits] sudo changeset 14750:14538e74fd02

Todd C. Miller Todd.Miller at sudo.ws
Thu May 11 20:02:11 MDT 2023


changeset:	14750:14538e74fd02 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/14538e74fd02
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Thu May 11 18:12:54 2023 -0600

Log Message:
	Accept carriage return for EOL in addition to newline.

	Since visudo doesn't alter the terminal settings it is possible for
	the terminal to have the ONLCR bit set in the output control flags.
	In that case, we will get a CR, not a NL when the user presses
	enter/return.  One way this can happen is if visudo is run in the
	background from a shell that supports line editing and the editor
	restores the (cbreak-style) terminal mode when it finishes.

diffstat:

 plugins/sudoers/visudo.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)



More information about the sudo-commits mailing list