#!/usr/bin/env bash # # Test setting smb2 max read = 0. # # BUG: https://bugzilla.samba.org/show_bug.cgi?id=15306 # if [ $# -lt 6 ]; then cat <"$global_inject_conf" ${SMBCONTROL} ${CONF} smbd reload-config } do_cleanup() { rm -f "${PREFIX}/zero_read_testfile" rm -f "${PREFIX}/zero_read_testfile_get" global_inject_conf="$(dirname "${SERVERCONFFILE}")/global_inject.conf" rm "$global_inject_conf" ${SMBCONTROL} ${CONF} smbd reload-config } test_smb2_zero_readsize() { local tmpfile="$PREFIX/smbclient.in.$$" cat >"$tmpfile" <