--- bzip2-1.0.2/bzdiff~ Sun Dec 30 05:12:35 2001 +++ bzip2-1.0.2/bzdiff Tue Feb 5 16:40:24 2002 @@ -37,10 +37,6 @@ echo "Usage: $prog [${comp}_options] file [file]" exit 1 fi -tmp=`tempfile -d /tmp -p bz` || { - echo 'cannot create a temporary file' >&2 - exit 1 -} set $FILES if test $# -eq 1; then FILE=`echo "$1" | sed 's/.bz2$//'` @@ -52,6 +48,10 @@ *.bz2) case "$2" in *.bz2) + tmp=`mktemp -t bzdiff.XXXXXXXXXX` || { + echo 'cannot create a temporary file' >&2 + exit 1 + } F=`echo "$2" | sed 's|.*/||;s|.bz2$||'` bzip2 -cdfq "$2" > $tmp bzip2 -cdfq "$1" | $comp $OPTIONS - $tmp