diff options
author | Joe Konno <joe.konno@intel.com> | 2018-02-07 15:40:38 -0800 |
---|---|---|
committer | Cyril Hrubis <chrubis@suse.cz> | 2018-02-13 11:34:27 +0100 |
commit | b745b0053c05f96df2acd15af7f434e468f9174d (patch) | |
tree | f74c5187a2c0dcdfea034e7d1640867f5b514503 | |
parent | 75b31d1374c669b56fd9d1ded9f04e6c77aedd6f (diff) |
commands/keyctl01.sh: remove bash expression
While running cve-2016-4470, I received a lot of error text from
keyctl01.sh about "maxkeysz not found". I root-caused this to a
bash-specific expression which is incompatible with the POSIX shell
specification.
This patch makes the expression POSIX shell compliant, and should remove
the script execution error. (It did for me).
Fixes: 05de90daad48 ("commands/keyctl01: Add new regression test")
Signed-off-by: Joe Konno <joe.konno@intel.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
-rw-r--r-- | testcases/commands/keyctl/keyctl01.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testcases/commands/keyctl/keyctl01.sh b/testcases/commands/keyctl/keyctl01.sh index 650e7f471..3fda3893b 100644 --- a/testcases/commands/keyctl/keyctl01.sh +++ b/testcases/commands/keyctl/keyctl01.sh @@ -113,7 +113,7 @@ do_test() tst_sleep 50ms fi - ((maxkeysz -= 4)) + maxkeysz=$((maxkeysz - 4)) done if [ $quota_excd -eq 0 ]; then |