From: Andreas Schneider Date: Wed, 19 Apr 2023 18:45:52 +0000 (+0200) Subject: s3:tests: Create a temporary directory for test_veto_files.sh X-Git-Tag: talloc-2.4.1~887 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b5a66840e3057cbff85fe6cd231310c4a9cfb34b;p=thirdparty%2Fsamba.git s3:tests: Create a temporary directory for test_veto_files.sh BUG: https://bugzilla.samba.org/show_bug.cgi?id=15360 Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison --- diff --git a/source3/script/tests/test_veto_files.sh b/source3/script/tests/test_veto_files.sh index 5ecfb53b8a4..e246e864b32 100755 --- a/source3/script/tests/test_veto_files.sh +++ b/source3/script/tests/test_veto_files.sh @@ -29,6 +29,10 @@ incdir=$(dirname "$0")/../../../testprogs/blackbox failed=0 +TMPDIR=${PREFIX_ABS}/$(basename "${0}") +mkdir -p "${TMPDIR}" || exit 1 +cd "${TMPDIR}" || exit 1 + # # Cleanup function. # @@ -51,7 +55,7 @@ smbclient_get_expect_error() { filename1="$1" expected_error="$2" - tmpfile=$PREFIX/smbclient_interactive_prompt_commands + tmpfile=${TMPDIR}/smbclient_interactive_prompt_commands cat >"$tmpfile" <"$tmpfile" <