[Toybox] [PATCH] stty: don't mangle c_iflags.
enh
enh at google.com
Wed Oct 14 18:10:58 PDT 2020
Fixes https://github.com/landley/toybox/issues/251 where `stty 300` was
mangling c_iflags to 0x300 because even if we don't match a full hex
specification of struct termios, sscanf() will have overwritten the
first value, which is c_iflag.
---
toys/pending/stty.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-stty-don-t-mangle-c_iflags.patch
Type: text/x-patch
Size: 1779 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20201014/2324659a/attachment.bin>
More information about the Toybox
mailing list