]> git.ipfire.org Git - thirdparty/coreutils.git/commit
stty: fix processing of options when -F is specified
authorPádraig Brady <P@draigBrady.com>
Mon, 16 Oct 2017 09:17:34 +0000 (02:17 -0700)
committerPádraig Brady <P@draigBrady.com>
Tue, 24 Oct 2017 06:15:25 +0000 (23:15 -0700)
commitf926f7ce0e0a224ef3a37a82e60fd3d7aaca906e
treeb8172ecfcb17d5970891c685fd976ff22208ce2f
parentcbf35912da66a17a6113d5a434214dd7651f403a
stty: fix processing of options when -F is specified

This was a latent issue that became significant with
the addition of the -F option in FILEUTILS-3_16n-56-ge46a424

* src/stty.c (apply_settings): Refactor argument checking
to a function macro.  Augment the argument check to ignore
NULLed out arguments (already processed -F).
* NEWS: Mention the fix.
* tests/misc/stty-invalid.sh: Add a test case.
Fixes https://bugs.gnu.org/28859
NEWS
src/stty.c
tests/misc/stty-invalid.sh