]> git.ipfire.org Git - thirdparty/coreutils.git/commit
stty: fix false warnings from [io]speed settings
authorPádraig Brady <P@draigBrady.com>
Sun, 11 Sep 2022 14:37:35 +0000 (15:37 +0100)
committerPádraig Brady <P@draigBrady.com>
Sun, 11 Sep 2022 14:40:52 +0000 (15:40 +0100)
commit760998a7898bbf21208e127a5250108035dc0dd7
tree994bdefd2ac14f994470eb7ae7f244a5b0389d62
parent8fdf9307b6e8e9b4d46e439237eb85d52caab85c
stty: fix false warnings from [io]speed settings

* src/stty.c (eq_mode): A new function to compare
equivalence of two modes.
(main): Use eq_mode() rather than memcmp() to compare
two modes. Also use stack variables rather than implicitly
initialized static variables.  Also remove all uses of
the SPEED_WAS_SET hack since we now more robustly compare modes.
* NEWS: Update the [io]speed fix entry.
Reported at https://bugs.debian.org/1019468
NEWS
src/stty.c