Sophie

Sophie

distrib > Mageia > 3 > i586 > by-pkgid > f60f5827640963120977f4c539f79a2c > files > 6

coreutils-8.20-5.mga3.src.rpm

--- coreutils-8.15/src/stty.c.tcsadrain~	2012-01-01 10:04:06.000000000 +0100
+++ coreutils-8.15/src/stty.c	2012-01-10 08:47:18.132494704 +0100
@@ -1005,7 +1005,7 @@ main (int argc, char **argv)
          spurious difference in an uninitialized portion of the structure.  */
       static struct termios new_mode;
 
-      if (tcsetattr (STDIN_FILENO, TCSADRAIN, &mode))
+      if (tcsetattr (STDIN_FILENO, TCSANOW, &mode))
         error (EXIT_FAILURE, errno, "%s", device_name);
 
       /* POSIX (according to Zlotnick's book) tcsetattr returns zero if