]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
testprogs: Fix shellcheck errors in test_weak_crypto_server.sh
authorAndreas Schneider <asn@samba.org>
Mon, 13 Jun 2022 14:07:21 +0000 (16:07 +0200)
committerPavel Filipensky <pfilipensky@samba.org>
Mon, 22 Aug 2022 20:35:36 +0000 (20:35 +0000)
testprogs/blackbox/test_weak_crypto_server.sh:59:65: error: Use braces
when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet).
[SC1087]

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
testprogs/blackbox/test_weak_crypto_server.sh

index 8bcd7cbc680e4255ebee45d85e1fd9758dadb743..e2b4660577f15f0b1d3dbc739cf8649c809500d2 100755 (executable)
@@ -56,7 +56,7 @@ unset GNUTLS_FORCE_FIPS_MODE
 testit "testparm-weak-crypto" test_weak_crypto_allowed || failed=$(expr $failed + 1)
 
 # We should not be allowed to use NTLM for connecting
-testit_expect_failure "rpclient.ntlm" $samba_rpcclient ncacn_np:$SERVER_IP[ntlm] -U$USERNAME%$PASSWORD -c "getusername" && failed=$(expr $failed + 1)
+testit_expect_failure "rpclient.ntlm" $samba_rpcclient ncacn_np:${SERVER_IP}[ntlm] -U$USERNAME%$PASSWORD -c "getusername" && failed=$(expr $failed + 1)
 
 GNUTLS_FORCE_FIPS_MODE=1
 export GNUTLS_FORCE_FIPS_MODE