kiss: Case remove UB

This commit is contained in:
Dylan Araps 2020-04-20 08:58:25 +03:00
parent 866860eac7
commit 0e367daf53
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 1 additions and 1 deletions

2
kiss
View File

@ -1236,7 +1236,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