summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-09-29 01:10:48 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-09-29 01:10:48 +0000
commitbfbd468234c9c47374b80fc2fadb09c1e45ee60a (patch)
tree2e91ed9490115ad46a7caa36ff2fcd618de5d82c
parentcb8fee19ec73571e81dd9d1fa855a2567527db5b (diff)
Put $TF in double-quotes since it could possibly contain spaces;
solar@openwall.com
-rw-r--r--gnu/usr.bin/gzip/zdiff6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/gzip/zdiff b/gnu/usr.bin/gzip/zdiff
index 91cc50b4945..38d57d26070 100644
--- a/gnu/usr.bin/gzip/zdiff
+++ b/gnu/usr.bin/gzip/zdiff
@@ -46,10 +46,10 @@ elif test $# -eq 2; then
*[-.]gz* | *[-.][zZ] | *.t[ga]z)
F=`echo "$2" | sed 's|.*/||;s|[-.][zZtga]*||'`
TF=`mktemp /tmp/"$F".XXXXXXXXXX` || exit 1
- gzip -cdfq "$2" > $TF
- gzip -cdfq "$1" | $comp $OPTIONS - $TF
+ gzip -cdfq "$2" > "$TF"
+ gzip -cdfq "$1" | $comp $OPTIONS - "$TF"
STAT="$?"
- /bin/rm -f $TF;;
+ /bin/rm -f "$TF";;
*) gzip -cdfq "$1" | $comp $OPTIONS - "$2"
STAT="$?";;