aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-04-20 18:09:22 +0000
committermerakor <cem@ckyln.com>2020-04-20 18:09:22 +0000
commit395d0f1a6019c176de72ce3aa30f57eb810b0d9b (patch)
tree318fc0a566943c692d24b2a61f31530b6e2a488e
parentcd5705905d1e93e0e8397b3899d4336b51adf2f2 (diff)
downloadcpt-395d0f1a6019c176de72ce3aa30f57eb810b0d9b.tar.gz
kiss: Case remove UB
FossilOrigin-Name: fe01e31c40a739022081182074440a69f176c1383c657c4dc7bb4ae6e616388d
-rwxr-xr-xkiss2
1 files changed, 1 insertions, 1 deletions
diff --git a/kiss b/kiss
index 11848a6..e2d093e 100755
--- a/kiss
+++ b/kiss
@@ -1233,7 +1233,7 @@ args() {
# This handles the globbing characters '*', '!', '[' and ']' as per:
# https://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html
[ "${action##[as]*}" ] &&
- case $@ in *\**|*\!*|*\[*|*\]*)
+ case $* in *\**|*\!*|*\[*|*\]*)
die "Arguments contain invalid characters: '!*[]'"
esac