testprogs: Fix shellcheck errors in test_kinit_trusts_heimdal.sh
authorAndreas Schneider <asn@samba.org>
Mon, 13 Jun 2022 13:48:39 +0000 (15:48 +0200)
committerAndreas Schneider <asn@samba.org>
Fri, 15 Jul 2022 13:32:38 +0000 (15:32 +0200)
testprogs/blackbox/test_kinit_trusts_heimdal.sh:80:114: error: Double
quote array expansions to avoid re-splitting elements. [SC2068]

Signed-off-by: Andreas Schneider <asn@samba.org>
testprogs/blackbox/test_kinit_trusts_heimdal.sh

index ce2e021c28f945c2db19315f22bf94ab43414722..84de3344a717755baa401867a48b16c801115277 100755 (executable)
@@ -77,7 +77,7 @@ testit "kinit renew ticket" $samba4kinit $enctype --request-pac -R
 
 test_smbclient "Test login with kerberos ccache" 'ls' "$unc" --use-krb5-ccache=$KRB5CCNAME || failed=$(expr $failed + 1)
 
-testit "check time with kerberos ccache" $VALGRIND $PYTHON $samba_tool time $SERVER.$REALM $CONFIGURATION -k yes $@ || failed=$(expr $failed + 1)
+testit "check time with kerberos ccache" $VALGRIND $PYTHON $samba_tool time $SERVER.$REALM $CONFIGURATION -k yes "$@" || failed=$(expr $failed + 1)
 
 lowerrealm=$(echo $TRUST_REALM | tr '[A-Z]' '[a-z]')
 test_smbclient "Test login with user kerberos lowercase realm" 'ls' "$unc" --use-krb5-ccache=$KRB5CCNAME -U$TRUST_USERNAME@$lowerrealm%$TRUST_PASSWORD || failed=$(expr $failed + 1)