Blame SOURCES/coreutils-7.4-sttytcsadrain.patch

dd59ef
diff -urNp coreutils-8.13-orig/src/stty.c coreutils-8.13/src/stty.c
dd59ef
--- coreutils-8.13-orig/src/stty.c	2011-07-28 12:38:27.000000000 +0200
dd59ef
+++ coreutils-8.13/src/stty.c	2011-09-09 10:18:57.526687209 +0200
dd59ef
@@ -1005,7 +1005,7 @@ main (int argc, char **argv)
dd59ef
          spurious difference in an uninitialized portion of the structure.  */
dd59ef
       static struct termios new_mode;
dd59ef
 
dd59ef
-      if (tcsetattr (STDIN_FILENO, TCSADRAIN, &mode))
dd59ef
+      if (tcsetattr (STDIN_FILENO, TCSANOW, &mode))
dd59ef
         error (EXIT_FAILURE, errno, "%s", device_name);
dd59ef
 
dd59ef
       /* POSIX (according to Zlotnick's book) tcsetattr returns zero if