summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2003-06-21 23:02:33 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2003-06-21 23:02:33 +0000
commit1ac20c04bb44f228d5f652b2040819558c1f6596 (patch)
tree10c6d82cf2ecf2fff36bbbf7af0d33ec58d174ec /sbin
parent7177d4807a0291860bb82c9f834ce8a8c3cdced4 (diff)
Make file selection more resistant to unexpected user input.
Rather than evaluating the expression case _f in $resp) ... esac use the equivalent form case _f in @($resp)) ... esac so that user input with multiple file names, user input with some special characters like ';', etc. do not cause syntax errors and premature ejection from the selection loop. A determined user can still cause problems, e.g. by using quotes. Clean up and simplify the code while in the area. Problems noted by todd@.
Diffstat (limited to 'sbin')
0 files changed, 0 insertions, 0 deletions