diff options
Diffstat (limited to 'main/ffmpeg/bb-mktemp.patch')
-rw-r--r-- | main/ffmpeg/bb-mktemp.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/main/ffmpeg/bb-mktemp.patch b/main/ffmpeg/bb-mktemp.patch new file mode 100644 index 000000000..a0438c6bb --- /dev/null +++ b/main/ffmpeg/bb-mktemp.patch @@ -0,0 +1,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 |