aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-05-17 20:08:12 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2013-05-17 20:08:12 +0200
commitae0cf2a9d73d6e290e3b2850de2bf22f9b3df622 (patch)
treefb981d0d3c8d18f6469eeae427aa860b2e0a4ffe
parente9581b673cb731490dac0db597296047acf9b828 (diff)
downloadbusybox-w32-ae0cf2a9d73d6e290e3b2850de2bf22f9b3df622.tar.gz
busybox-w32-ae0cf2a9d73d6e290e3b2850de2bf22f9b3df622.tar.bz2
busybox-w32-ae0cf2a9d73d6e290e3b2850de2bf22f9b3df622.zip
stty: disable CIBAUD leak check - it is not necessary on Linux
function old new delta stty_main 1233 1196 -37 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--coreutils/stty.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/coreutils/stty.c b/coreutils/stty.c
index c52296871..d1e74f437 100644
--- a/coreutils/stty.c
+++ b/coreutils/stty.c
@@ -1533,7 +1533,12 @@ int stty_main(int argc UNUSED_PARAM, char **argv)
1533 perror_on_device_and_die("%s"); 1533 perror_on_device_and_die("%s");
1534 1534
1535 if (memcmp(&mode, &new_mode, sizeof(mode)) != 0) { 1535 if (memcmp(&mode, &new_mode, sizeof(mode)) != 0) {
1536#if CIBAUD 1536/*
1537 * I think the below chunk is not necessary on Linux.
1538 * If you are deleting it, also delete STTY_speed_was_set bit -
1539 * it is only ever checked here.
1540 */
1541#if 0 /* was "if CIBAUD" */
1537 /* SunOS 4.1.3 (at least) has the problem that after this sequence, 1542 /* SunOS 4.1.3 (at least) has the problem that after this sequence,
1538 tcgetattr (&m1); tcsetattr (&m1); tcgetattr (&m2); 1543 tcgetattr (&m1); tcsetattr (&m1); tcgetattr (&m2);
1539 sometimes (m1 != m2). The only difference is in the four bits 1544 sometimes (m1 != m2). The only difference is in the four bits