bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] make your tar archive even more anonymous


From: Denis Excoffier
Subject: Re: [Bug-tar] make your tar archive even more anonymous
Date: Mon, 9 Jul 2012 09:52:59 +0159
User-agent: Mutt/1.5.21 (2010-09-15)

On Fri, Jul 06, 2012 at 01:31:31PM +0200, Denis Excoffier wrote:
>> 
>> To be myself honest also, i have sometimes to deliver directories that
>> contain about 50000 files, that i would like sorted. In any case, i
>> prefer to rely on a single additional option on my tar command line (in
>> TAR_OPTIONS in this case) than on a complex and error-prone find
>> incantation. If not provided directly (as an option) or indirectly
>> (by just replacing 100 with 50000 in the code) by
>> tar, i feel myself capable to insert some dirty malloc/qsort/free
>> somewhere in tar/src/create.c, not far where --no-recursion is
>> actually acting.
>> 

Please find attached a naive implementation of
--sort-directory-entries (patch against tar-1.26). Any comments?

Regards,

Denis Excoffier.

Attachment: sort-directory.patch
Description: Text document


reply via email to

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