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 /tests/touch/no-create-missing.sh | |
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 'tests/touch/no-create-missing.sh')
0 files changed, 0 insertions, 0 deletions