Subject: Re: bug#18679: gzip-1.6 tests/unpack-invalid may override user file in /tmp
From: Paul Eggert <[email-masked]>
To: Kiyoshi KANAZAWA <[email-masked]>, [email-masked]
Date: Fri, 10 Oct 2014 11:43:21 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Kiyoshi KANAZAWA wrote:

> They should be created in tests directory.

Thanks; I pushed the attached to fix that.
From 6ffdf6ea71bfb289efd10290579405ea480c0e49 Mon Sep 17 00:00:00 2001
From: Paul Eggert <[email-masked]>
Date: Fri, 10 Oct 2014 11:41:25 -0700
Subject: [PATCH] tests: use local dir for output

Reported by Kiyoshi KANAZAWA in: http://bugs.gnu.org/18679
* tests/unpack-invalid: Use local directory, not /tmp, for output.
---
 tests/unpack-invalid | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/unpack-invalid b/tests/unpack-invalid
index daa7b25..2569cdb 100755
--- a/tests/unpack-invalid
+++ b/tests/unpack-invalid
@@ -26,7 +26,7 @@ for input in \
 
   printf "$input" >in || framework_failure_
 
-  if gzip -d <in >/tmp/out 2>/tmp/err; then
+  if gzip -d <in >out 2>err; then
     fail=1
   else
     fail=0
-- 
1.9.3