summaryrefslogtreecommitdiff
path: root/updater/bzip2-1.0.3/bzdiff
diff options
context:
space:
mode:
Diffstat (limited to 'updater/bzip2-1.0.3/bzdiff')
-rw-r--r--updater/bzip2-1.0.3/bzdiff4
1 files changed, 2 insertions, 2 deletions
diff --git a/updater/bzip2-1.0.3/bzdiff b/updater/bzip2-1.0.3/bzdiff
index 3c2eb85..6fc38f9 100644
--- a/updater/bzip2-1.0.3/bzdiff
+++ b/updater/bzip2-1.0.3/bzdiff
@@ -12,7 +12,7 @@
# necessary) and fed to cmp or diff. The exit status from cmp
# or diff is preserved.
-PATH="/usr/bin:$PATH"; export PATH
+PATH="/usr/bin:/bin:$PATH"; export PATH
prog=`echo $0 | sed 's|.*/||'`
case "$prog" in
*cmp) comp=${CMP-cmp} ;;
@@ -37,7 +37,7 @@ if test -z "$FILES"; then
echo "Usage: $prog [${comp}_options] file [file]"
exit 1
fi
-tmp=`tempfile -d /tmp -p bz` || {
+tmp=`mktemp ${TMPDIR:-/tmp}/bzdiff.XXXXXXXXXX` || {
echo 'cannot create a temporary file' >&2
exit 1
}