From: Denys Vlasenko Date: Fri, 17 May 2013 18:08:12 +0000 (+0200) Subject: stty: disable CIBAUD leak check - it is not necessary on Linux X-Git-Tag: 1_22_0~187 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ae0cf2a9d73d6e290e3b2850de2bf22f9b3df622;p=oweals%2Fbusybox.git 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 --- 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) perror_on_device_and_die("%s"); if (memcmp(&mode, &new_mode, sizeof(mode)) != 0) { -#if CIBAUD +/* + * I think the below chunk is not necessary on Linux. + * If you are deleting it, also delete STTY_speed_was_set bit - + * it is only ever checked here. + */ +#if 0 /* was "if CIBAUD" */ /* SunOS 4.1.3 (at least) has the problem that after this sequence, tcgetattr (&m1); tcsetattr (&m1); tcgetattr (&m2); sometimes (m1 != m2). The only difference is in the four bits