From d22a5179384adc4029ed6b522ade89932f8f50e0 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Sat, 8 Jun 2024 02:56:48 -0700 Subject: [PATCH] test-framework-sh: Don't leave temporary directories on NetBSD. Reported by Taylor R Campbell in * tests/init.sh (mktempd_): Don't use mktemp with the -t option as it leads to uncleaned temporary directories on NetBSD. --- ChangeLog | 8 ++++++++ tests/init.sh | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9fafd39f69..5de7779195 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2024-06-08 Collin Funk + + test-framework-sh: Don't leave temporary directories on NetBSD. + Reported by Taylor R Campbell in + + * tests/init.sh (mktempd_): Don't use mktemp with the -t option as it + leads to uncleaned temporary directories on NetBSD. + 2024-06-06 Bruno Haible nstrftime: Support time zone names on MSVC. diff --git a/tests/init.sh b/tests/init.sh index c5ec5cfd58..4689b6b758 100644 --- a/tests/init.sh +++ b/tests/init.sh @@ -344,7 +344,7 @@ mktempd_ () esac # First, try to use mktemp. - d=`unset TMPDIR; { mktemp -d -t -p "$destdir_" "$template_"; } 2>/dev/null` && + d=`unset TMPDIR; { mktemp -d -p "$destdir_" "$template_"; } 2>/dev/null` && # The resulting name must be in the specified directory. case $d in "$destdir_slash_"*) :;; *) false;; esac && -- 2.39.5