From 51ecbdc8cb7e280744c6a00eb3a8b2a1f116c1be Mon Sep 17 00:00:00 2001 From: Trammell Hudson Date: Tue, 11 Apr 2017 06:31:25 -0400 Subject: [PATCH] "$@" does not expand correctly in test expressions, use "$*" instead (issue #181) --- initrd/sbin/insmod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initrd/sbin/insmod b/initrd/sbin/insmod index a244e862..01a988f9 100755 --- a/initrd/sbin/insmod +++ b/initrd/sbin/insmod @@ -33,7 +33,7 @@ if [ -z "$tpm_missing" ]; then || die "$MODULE: tpm extend failed" fi -if [ ! -z "$@" -a -z "$tpm_missing" ]; then +if [ ! -z "$*" -a -z "$tpm_missing" ]; then TMPFILE=/tmp/insmod.$$ echo "$@" > $TMPFILE tpm extend -ix "$MODULE_PCR" -if $TMPFILE \