]> granicus.if.org Git - sudo/commitdiff
Use TCSETAF, not TCSETA to set terminal in termio case
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 17 Dec 2001 23:56:47 +0000 (23:56 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 17 Dec 2001 23:56:47 +0000 (23:56 +0000)
tgetpass.c

index 7353d265715c963e8c4d082f888b26df4c8d4a82..659f854dcef4d77c766b8977c8e6fa69dc860f6d 100644 (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