summaryrefslogtreecommitdiff
path: root/src/dirname.c
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 /src/dirname.c
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 'src/dirname.c')
0 files changed, 0 insertions, 0 deletions