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