]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
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)
committerPavel Filipensky <pfilipensky@samba.org>
Mon, 22 Aug 2022 20:35:36 +0000 (20:35 +0000)
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>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
testprogs/blackbox/test_kinit_trusts_heimdal.sh

index 552808d8aecf2e81597f26681e6ee8bd4c25eda4..f08acc013784a1431c03d5c086be12dd67ffafb3 100755 (executable)
@@ -81,7 +81,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)