Current-Users archive

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

pax(1) vs GNU tar LONGNAME



Hello all,


Our tar(pax-as-tar) can handle GNU tar LONGNAME extension, but pax and
cpio are disabled.

> options.c:1.49
> date: 2002/10/16 18:53:40;  author: christos;  state: Exp;  lines: +3 -2
> turn gnu tar off by pax and cpio front ends.

But I guess pax intend to process GNU tar extension and fails.

> % pax -f longname.tar
> pax: Trying to read GNU tar archive with GNU extensions and end-of-volume 
> checks off
> pax: GNU Long File found in posix ustar archive.
> 
> pax: Invalid header, starting valid header search.
> very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_long

So I suggest:

> diff -u src/bin/pax.mod/tar.c.ORIG src/bin/pax.mod/tar.c
> --- src/bin/pax.mod/tar.c.ORIG        2013-01-25 02:43:44.000000000 +0900
> +++ src/bin/pax.mod/tar.c     2013-07-29 21:35:39.000000000 +0900
> @@ -790,6 +790,7 @@
>       /* This is GNU tar */
>       if (strncmp(hd->magic, "ustar  ", 8) == 0 && !is_gnutar &&
>           !seen_gnu_warning) {
> +             is_gnutar = 1;
>               seen_gnu_warning = 1;
>               tty_warn(0,
>                   "Trying to read GNU tar archive with GNU extensions and 
> end-of-volume checks off");

Any comments?


Regards,
-- 
nakayosh


Home | Main Index | Thread Index | Old Index