]> git.pld-linux.org Git - packages/bzip2.git/blob - bzip2-tempfile.patch
- fix insecure tmpfile creation - taken from FC
[packages/bzip2.git] / bzip2-tempfile.patch
1 --- bzip2-1.0.2/bzdiff.tempfile 2004-12-09 15:37:56.809670688 +0100
2 +++ bzip2-1.0.2/bzdiff  2004-12-09 15:46:05.169428720 +0100
3 @@ -37,7 +37,7 @@
4         echo "Usage: $prog [${comp}_options] file [file]"
5         exit 1
6  fi
7 -tmp=`tempfile -d /tmp -p bz` || {
8 +tmp=`/bin/mktemp ${TMPDIR:-/tmp}/bzdiff.XXXXXXXXXX` || {
9        echo 'cannot create a temporary file' >&2
10        exit 1
11  }
This page took 0.053687 seconds and 3 git commands to generate.