]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
testprogs: Fix shellcheck errors in test_kinit_trusts_mit.sh
authorAndreas Schneider <asn@samba.org>
Mon, 13 Jun 2022 13:55:25 +0000 (15:55 +0200)
committerPavel Filipensky <pfilipensky@samba.org>
Mon, 22 Aug 2022 20:35:36 +0000 (20:35 +0000)
testprogs/blackbox/test_kinit_trusts_mit.sh:55:63: error: Double quote
array expansions to avoid re-splitting elements. [SC2068]

testprogs/blackbox/test_kinit_trusts_mit.sh:109:106: 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_mit.sh

index 35fcb6d1c53d328dd0e77e1063ca4f2f213127c3..27ed89861cb40be7ee3b83cd7387d8c4138a19f2 100755 (executable)
@@ -52,7 +52,7 @@ test_smbclient()
        shift
        shift
        echo "test: $name"
-       $VALGRIND $smbclient $CONFIGURATION $SMBCLIENT_UNC -c "$cmd" $@
+       $VALGRIND $smbclient $CONFIGURATION $SMBCLIENT_UNC -c "$cmd" "$@"
        status=$?
        if [ x$status = x0 ]; then
                echo "success: $name"
@@ -106,7 +106,7 @@ test_smbclient "Test login with kerberos ccache" 'ls' --use-krb5-ccache=$KRB5CCN
 testit "kinit renew ticket" $samba_kinit -R
 test_smbclient "Test login with kerberos ccache" 'ls' --use-krb5-ccache=$KRB5CCNAME || failed=$(expr $failed + 1)
 
-testit "check time with kerberos ccache" $VALGRIND $samba_tool time $SERVER.$REALM $CONFIGURATION -k yes $@ || failed=$(expr $failed + 1)
+testit "check time with kerberos ccache" $VALGRIND $samba_tool time $SERVER.$REALM $CONFIGURATION -k yes "$@" || failed=$(expr $failed + 1)
 
 $samba_kdestroy