Use TCSETAF, not TCSETA to set terminal in termio case

This commit is contained in:
Todd C. Miller
2001-12-17 23:56:47 +00:00
parent a459e6a31d
commit 0cc2362d4c

View File

@@ -116,7 +116,7 @@ static const char rcsid[] = "$Sudo$";
# define TERM termio
# define tflags c_lflag
# define term_getattr(f, t) ioctl(f, TCGETA, t)
# define term_setattr(f, t) ioctl(f, TCSETA, t)
# define term_setattr(f, t) ioctl(f, TCSETAF, t)
# else
# define TERM sgttyb
# define tflags sg_flags