From: Collin Funk Date: Tue, 11 Jun 2024 21:16:34 +0000 (-0700) Subject: mktempd: Invoke mktemp portably. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=31b8f83d8f12fd06a4086bdb2e42a7bbb3b4f172;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 5de7779195..4104be72a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-06-11 Collin Funk + + 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-08 Collin Funk test-framework-sh: Don't leave temporary directories on NetBSD. diff --git a/build-aux/mktempd b/build-aux/mktempd index e18cf76878..542a4016fe 100755 --- a/build-aux/mktempd +++ b/build-aux/mktempd @@ -1,7 +1,7 @@ #!/bin/sh # Create a temporary directory, much like mktemp -d does. -# Copyright (C) 2007-2023 Free Software Foundation, Inc. +# Copyright (C) 2007-2024 Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -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.