[hackers] [sbase] tar: ignore more crazy GNU PAX header crap || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Fri, 8 May 2015 22:36:46 +0200 (CEST)

commit d41095299a9ab35cd0a2dbc9e44a865125e62488
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Fri May 8 22:28:24 2015 +0200

    tar: ignore more crazy GNU PAX header crap
    
    don't fail, but maybe we should give a warning for this?

diff --git a/tar.c b/tar.c
index 8c432d1..01043ee 100644
--- a/tar.c
+++ b/tar.c
_AT_@ -458,7 +458,7 @@ xt(int argc, char *argv[], int mode)
                 }
 
                 /* ignore global pax header craziness */
- if (h->type == 'g') {
+ if (h->type == 'g' || h->type == 'x') {
                         skipblk(size);
                         continue;
                 }
Received on Fri May 08 2015 - 22:36:46 CEST

This archive was generated by hypermail 2.3.0 : Fri May 08 2015 - 22:48:11 CEST