]> Savannah Git Hosting - gnulib.git/commitdiff
test-framework-sh: Don't leave temporary directories on NetBSD.
authorCollin Funk <collin.funk1@gmail.com>
Sat, 8 Jun 2024 09:56:48 +0000 (02:56 -0700)
committerBruno Haible <bruno@clisp.org>
Thu, 13 Jun 2024 15:04:46 +0000 (17:04 +0200)
Reported by Taylor R Campbell <riastradh@NetBSD.org> in
<https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=58319>

* tests/init.sh (mktempd_): Don't use mktemp with the -t option as it
leads to uncleaned temporary directories on NetBSD.

ChangeLog
tests/init.sh

index 9fafd39f693f8abee6de2183ee52d62f20277027..5de7779195fcc81472eeb0c38d7915afb98c2592 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-06-08  Collin Funk  <collin.funk1@gmail.com>
+
+       test-framework-sh: Don't leave temporary directories on NetBSD.
+       Reported by Taylor R Campbell <riastradh@NetBSD.org> in
+       <https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=58319>
+       * 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  <bruno@clisp.org>
 
        nstrftime: Support time zone names on MSVC.
index c5ec5cfd5893fccfeb6dfc0a999f12309fc82e2a..4689b6b758c27009848ef51bf7fe01db95daa205 100644 (file)
@@ -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 &&