bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] tar xf and .Z archive


From: Paul Eggert
Subject: Re: [Bug-tar] tar xf and .Z archive
Date: Mon, 12 Jul 2010 11:40:16 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100527 Thunderbird/3.0.5

On 07/10/10 15:27, Sergey Poznyakoff wrote:

>  ./configure --with-compress=gzip

Hmm, but that will cause 'tar' to fail when creating .Z files, right?
Also, it's awkward to have to remember to do that.

How about the following patch instead?

By the way, while investigating this I noticed a function name that is
consistently misspelled: set_comression_program_by_suffix

--- buffer.c    2010-07-12 11:18:40.291135659 -0700
+++ /tmp/buffer.c       2010-07-12 11:36:42.175140769 -0700
@@ -394,6 +394,12 @@ open_compressed_archive (void)
                return archive;
               break;
 
+           case ct_compress:
+             /* Use gzip to decompress, since it supports this format
+                and is more likely to be installed.  */
+             use_compress_program_option = compress_program (ct_gzip);
+             break;
+
             default:
               use_compress_program_option = compress_program (type);
               break;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]