projects
/
debian
/
gzip
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: avoid failure when running with no tty
[debian/gzip]
/
gzexe.in
diff --git
a/gzexe.in
b/gzexe.in
index b3339937418969d7eef907d3c94b39e21ebf0a9f..371289c2c1557a918a571b10074b59bfb9c6feee 100644
(file)
--- a/
gzexe.in
+++ b/
gzexe.in
@@
-13,7
+13,7
@@
# On Ultrix, /bin/sh is too buggy, change the first line to: #!/bin/sh5
# On Ultrix, /bin/sh is too buggy, change the first line to: #!/bin/sh5
-# Copyright (C) 1998, 2002, 2004, 2006-2007, 2010-201
6
Free Software
+# Copyright (C) 1998, 2002, 2004, 2006-2007, 2010-201
7
Free Software
# Foundation, Inc.
# Copyright (C) 1993 Jean-loup Gailly
# Foundation, Inc.
# Copyright (C) 1993 Jean-loup Gailly
@@
-119,7
+119,7
@@
for i do
mktemp_status=$?
fi
if test $mktemp_status -eq 0; then
mktemp_status=$?
fi
if test $mktemp_status -eq 0; then
- tmp=`TMPDIR=$dir mktemp
-t gzexeXXXXXX
`
+ tmp=`TMPDIR=$dir mktemp`
else
tmp=$dir/gzexe$$
fi && { cp -p "$file" "$tmp" 2>/dev/null || cp "$file" "$tmp"; } || {
else
tmp=$dir/gzexe$$
fi && { cp -p "$file" "$tmp" 2>/dev/null || cp "$file" "$tmp"; } || {
@@
-157,7
+157,7
@@
trap 'res=$?
' 0 1 2 3 5 10 13 15
if type mktemp >/dev/null 2>&1; then
' 0 1 2 3 5 10 13 15
if type mktemp >/dev/null 2>&1; then
- gztmpdir=`mktemp -d
t
`
+ gztmpdir=`mktemp -d`
else
gztmpdir=/tmp/gztmp$$; mkdir $gztmpdir
fi || { (exit 127); exit 127; }
else
gztmpdir=/tmp/gztmp$$; mkdir $gztmpdir
fi || { (exit 127); exit 127; }