2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 22:35:10 +00:00

Retain NL to NLCR conversion on the real tty and skip it on the pty

we allocate.  That way, if stdout is not a pty there are no extra carriage
returns.
This commit is contained in:
Todd C. Miller
2009-09-30 02:12:35 +00:00
parent e6331c0773
commit fe9fc5ad1b
3 changed files with 28 additions and 11 deletions

4
sudo.h
View File

@@ -332,9 +332,9 @@ int script_execv __P((char *, char **));
void script_nextid __P((void));
void script_setup __P((void));
int term_cbreak __P((int));
int term_copy __P((int, int));
int term_copy __P((int, int, int));
int term_noecho __P((int));
int term_raw __P((int));
int term_raw __P((int, int));
int term_restore __P((int));
char *get_timestr __P((time_t, int));
YY_DECL;