]> git.pld-linux.org Git - packages/bzip2.git/commitdiff
- fix insecure tmpfile creation - taken from FC
authorPaweł Gołaszewski <blues@pld-linux.org>
Tue, 13 Jun 2006 21:41:07 +0000 (21:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bzip2-tempfile.patch -> 1.1

bzip2-tempfile.patch [new file with mode: 0644]

diff --git a/bzip2-tempfile.patch b/bzip2-tempfile.patch
new file mode 100644 (file)
index 0000000..1c6ba54
--- /dev/null
@@ -0,0 +1,11 @@
+--- bzip2-1.0.2/bzdiff.tempfile        2004-12-09 15:37:56.809670688 +0100
++++ bzip2-1.0.2/bzdiff 2004-12-09 15:46:05.169428720 +0100
+@@ -37,7 +37,7 @@
+       echo "Usage: $prog [${comp}_options] file [file]"
+       exit 1
+ fi
+-tmp=`tempfile -d /tmp -p bz` || {
++tmp=`/bin/mktemp ${TMPDIR:-/tmp}/bzdiff.XXXXXXXXXX` || {
+       echo 'cannot create a temporary file' >&2
+       exit 1
+ }
This page took 0.065291 seconds and 4 git commands to generate.