From 395d0f1a6019c176de72ce3aa30f57eb810b0d9b Mon Sep 17 00:00:00 2001 From: merakor Date: Mon, 20 Apr 2020 18:09:22 +0000 Subject: kiss: Case remove UB FossilOrigin-Name: fe01e31c40a739022081182074440a69f176c1383c657c4dc7bb4ae6e616388d --- kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3