aboutsummaryrefslogtreecommitdiffstats
path: root/main/ffmpeg/bb-mktemp.patch
blob: a0438c6bbf402c54e6ae51dba14fbb00bdbcd71f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- ./configure.orig
+++ ./configure
@@ -1684,12 +1684,12 @@
     # simple replacement for missing mktemp
     # NOT SAFE FOR GENERAL USE
     mktemp(){
-        echo "${2%XXX*}.${HOSTNAME}.${UID}.$$"
+        echo "${1%XXX*}.${HOSTNAME}.${UID}.$$"
     }
 fi
 
 tmpfile(){
-    tmp=$(mktemp -u "${TMPDIR}/ffconf.XXXXXXXX")$2 &&
+    tmp=$(mktemp "${TMPDIR}/ffconf.XXXXXXXX")$2 &&
         (set -C; exec > $tmp) 2>/dev/null ||
         die "Unable to create temporary file in $TMPDIR."
     append TMPFILES $tmp