summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2017-01-09 00:07:42 +0000
committerPádraig Brady <P@draigBrady.com>2017-01-09 00:27:07 +0000
commit9c0a3a27f70bbb27e839404571922b0f8f0d48da (patch)
tree4d2d6c9857321db2a9b45b23c9485bd555cccc13 /NEWS
parent229431d63caf2dcb411da565a9fc7e51fa2ac809 (diff)
downloadcoreutils-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--NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 9ee0c58fc..9e0aaf437 100644
--- a/NEWS
+++ b/NEWS
@@ -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]