From: Jeremy Allison Date: Mon, 11 May 2020 22:37:00 +0000 (-0700) Subject: s3: selftest: Add test_smbclient_iconv.sh to check client behavior on bad name conver... X-Git-Tag: samba-4.11.10~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f02467bf688e8ba7ef5dd48dda723314e09f21a5;p=thirdparty%2Fsamba.git s3: selftest: Add test_smbclient_iconv.sh to check client behavior on bad name conversion. SMB2 and NT1 fail this, CORE already returns NT_STATUS_INVALID_NETWORK_RESPONSE on bad conversion. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14374 Signed-off-by: Jeremy Allison Reviewed-by: Andreas Schneider (back-ported from commit e016671d34c24c4768df774425ec743b88e30015) --- diff --git a/selftest/knownfail.d/bad_iconv b/selftest/knownfail.d/bad_iconv new file mode 100644 index 00000000000..cdedc70e78b --- /dev/null +++ b/selftest/knownfail.d/bad_iconv @@ -0,0 +1,3 @@ +samba3.blackbox.smbclient_iconv.NT1 +samba3.blackbox.smbclient_iconv.SMB2 + diff --git a/source3/script/tests/test_smbclient_iconv.sh b/source3/script/tests/test_smbclient_iconv.sh new file mode 100755 index 00000000000..0ec7b67dbf7 --- /dev/null +++ b/source3/script/tests/test_smbclient_iconv.sh @@ -0,0 +1,53 @@ +#!/bin/sh + +# This checks directory listing with a file containing +# an invalid CP850 conversion name returns NT_STATUS_INVALID_NETWORK_RESPONSE + +if [ $# -lt 6 ]; then +cat < $smbclient_config <