]> Savannah Git Hosting - gnulib.git/commitdiff
mktempd: Invoke mktemp portably.
authorCollin Funk <collin.funk1@gmail.com>
Tue, 11 Jun 2024 21:16:34 +0000 (14:16 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Tue, 11 Jun 2024 21:17:22 +0000 (14:17 -0700)
* build-aux/mktempd (mktempd): Don't use -t when invoking mktemp since
some implementations expect an argument while others do not.

ChangeLog
build-aux/mktempd

index a8d28c4765b7af6ae8206188859623d74df13c24..da884143dd74b8f76579fe1fbe38a26fb92234ef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-06-11  Collin Funk  <collin.funk1@gmail.com>
+
+       mktempd: Invoke mktemp portably.
+       * build-aux/mktempd (mktempd): Don't use -t when invoking mktemp since
+       some implementations expect an argument while others do not.
+
 2024-06-11  Bruno Haible  <bruno@clisp.org>
 
        test-framework-sh: Fix 'returns_' to not turn off tracing permanently.
index 7f69a2d66b48a4552aafd5992b464f7376370abd..542a4016fe657ff952d8a336d25ecf391a8cf6c7 100755 (executable)
@@ -91,7 +91,7 @@ mktempd()
   fail=0
 
   # First, try to use mktemp.
-  d=`env -u TMPDIR mktemp -d -t -p "$destdir" "$template" 2>/dev/null` \
+  d=`env -u TMPDIR mktemp -d -p "$destdir" "$template" 2>/dev/null` \
     || fail=1
 
   # The resulting name must be in the specified directory.