Ondrej Vasik 7f2b32
diff -urNp coreutils-7.4-orig/src/stty.c coreutils-7.4/src/stty.c
Ondrej Vasik 7f2b32
--- coreutils-7.4-orig/src/stty.c	2009-04-24 14:41:19.000000000 +0200
Ondrej Vasik 7f2b32
+++ coreutils-7.4/src/stty.c	2009-06-11 10:15:41.000000000 +0200
Ondrej Vasik 7f2b32
@@ -1001,7 +1001,7 @@ main (int argc, char **argv)
Ondrej Vasik 250517
          spurious difference in an uninitialized portion of the structure.  */
Ondrej Vasik 7f2b32
       DECLARE_ZEROED_AGGREGATE (struct termios, new_mode);
Ondrej Vasik 7f2b32
 
Ondrej Vasik 7f2b32
-      if (tcsetattr (STDIN_FILENO, TCSADRAIN, &mode))
Ondrej Vasik 7f2b32
+      if (tcsetattr (STDIN_FILENO, TCSANOW, &mode))
Ondrej Vasik 250517
         error (EXIT_FAILURE, errno, "%s", device_name);
Ondrej Vasik 7f2b32
 
Ondrej Vasik 7f2b32
       /* POSIX (according to Zlotnick's book) tcsetattr returns zero if