]> diplodocus.org Git - nmh/commitdiff
test-sendfiles: Feed `lzma -cd' stdin rather than a filename.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 19 Aug 2017 14:58:49 +0000 (15:58 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 19 Aug 2017 14:58:49 +0000 (15:58 +0100)
HÃ¥kon Alstadheim reported that Debian's lzma-9.22-2 would complain at
`lzma -cd foo.tar' with `unknown suffix -- unchanged' even though it was
not being asked to alter the file, or produce a new one based on its
filename.  This appears to be https://bugs.debian.org/700681.  The lzma
from Arch Linux's xz 5.2.3-1 does no have this fault.  Work around it by
feeding the file to decompress on standard input for all the compression
programs being tested;  none of the others should mind.

test/post/test-sendfiles

index 84f54bfedb2498ee48166015f1bc2c6249428276..3e55b1ec12c17a6899c453869ce7deb65e2477b9 100755 (executable)
@@ -65,7 +65,7 @@ test_sendfiles ()
   (cd $MH_TEST_DIR/tmp  &&
    contents=`mhstore -noauto last 2>&1 | \
              sed -e 's/storing message.*as file //'`  &&
-   $uncompress "$contents" | tar xpf -  &&  rm -f "$contents")
+   $uncompress <"$contents" | tar xpf -  &&  rm -f "$contents")
 
   rmm last
   check "$testfiledir/$testfile" "$MH_TEST_DIR/tmp/$testfile" \