Fix stair-stepped output when the output of a sudo command is piped

to another command and use_pty is set.
This commit is contained in:
Todd C. Miller
2017-09-26 14:21:11 -06:00
parent 1051cf1e6f
commit 3b88cdfcd8
2 changed files with 14 additions and 0 deletions

View File

@@ -164,6 +164,9 @@
#ifndef _S_IFLNK
# define _S_IFLNK S_IFLNK
#endif /* _S_IFLNK */
#ifndef _S_IFIFO
# define _S_IFIFO S_IFIFO
#endif /* _S_IFIFO */
#ifndef S_ISREG
# define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
#endif /* S_ISREG */
@@ -173,6 +176,9 @@
#ifndef S_ISLNK
# define S_ISLNK(m) (((m) & _S_IFMT) == _S_IFLNK)
#endif /* S_ISLNK */
#ifndef S_ISFIFO
# define S_ISFIFO(m) (((m) & _S_IFMT) == _S_IFIFO)
#endif /* S_ISLNK */
#ifndef S_ISTXT
# define S_ISTXT 0001000
#endif /* S_ISTXT */