[PATCH] Allows tar to extract from archives with pax extensions

Erik Frederiksen erik_frederiksen at pmc-sierra.com
Thu Jul 6 20:45:47 UTC 2006


On Thu, 2006-07-06 at 14:31, Rob Landley wrote:
> 
> Ooh!
> 
> My comment is "Applied", although I'm going to tweak it a bit first.
> 
> Combining Linus's comment with the pax spec:
> http://www.opengroup.org/onlinepubs/009695399/utilities/pax.html
> 
> The question is what to do about 'x' records?
> 
> >         case 'x':
> > +               bb_error_msg_and_die( "pax is not tar" );
> > +               break;
> >         case 'g':
> > -               bb_error_msg_and_die("pax is not tar");
> > +               bb_error_msg(
> > +             "%s: Unknown file type '%c', treating as a regular
> file.",
> > +                       file_header->name,
> > +                       tar.formated.typeflag
> > +               );
> > +               file_header->mode |= S_IFREG;
> 
> Ideally I think we just want to ignore them...

Yeah, ignoring the 'x' files sounds about right.  In retrospect I should
have changed that "pax is not tar" message.  Ah, maybe next time.  :)

> http://busybox.net/downloads/patches/svn-15660.patch
> 
> And if that works for everybody else, it's going into 1.2.1. :)

Fantastic.  I hope this helps.  

-erik

-- 
Erik Frederiksen
Firmware Design Engineer Co-op
PMC-Sierra Saskatoon





More information about the busybox mailing list