diff options
author | Pádraig Brady <P@draigBrady.com> | 2017-01-09 00:07:42 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2017-01-09 00:27:07 +0000 |
commit | 9c0a3a27f70bbb27e839404571922b0f8f0d48da (patch) | |
tree | 4d2d6c9857321db2a9b45b23c9485bd555cccc13 /NEWS | |
parent | 229431d63caf2dcb411da565a9fc7e51fa2ac809 (diff) | |
download | coreutils-9c0a3a27f70bbb27e839404571922b0f8f0d48da.tar.xz |
stty: ensure no side effects from invalid options
* src/stty.c (apply_settings): A new function refactored
from main() that is used to both check and apply options.
(main): Call apply_settings before we open the device,
so all validation is done before interacting with a device.
* NEWS: Mention the improvement.
* tests/misc/stty.sh: Add a test case.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -13,6 +13,11 @@ GNU coreutils NEWS -*- outline -*- depending on the size of the first file processed. [bug introduced in coreutils-8.24] +** Improvements + + stty now validates arguments before interacting with the device, + ensuring there are no side effects to specifying an invalid option. + * Noteworthy changes in release 8.26 (2016-11-30) [stable] |