Some variants of mktemp require a template, so provide one when
checking for the command. We already supply a template in the
subsequent uses of mktemp.
Thanks to Michael Kostylev.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit a210bce298281aa08516893580089d102afb2e4d)
... | ... |
@@ -1794,7 +1794,7 @@ HOSTEXESUF=$(exesuf $host_os) |
1794 | 1794 |
: ${TMPDIR:=$TMP} |
1795 | 1795 |
: ${TMPDIR:=/tmp} |
1796 | 1796 |
|
1797 |
-if ! check_cmd mktemp -u; then |
|
1797 |
+if ! check_cmd mktemp -u XXXXXX; then |
|
1798 | 1798 |
# simple replacement for missing mktemp |
1799 | 1799 |
# NOT SAFE FOR GENERAL USE |
1800 | 1800 |
mktemp(){ |