[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tar and trailing slash for dirnames.
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: Re: tar and trailing slash for dirnames.
- From: Han Boetes <han_(_at_)_mijncomputer_(_dot_)_nl>
- Date: Sun, 13 Mar 2005 23:56:12 +0100
- Cc: Otto Moerbeek <otto_(_at_)_drijf_(_dot_)_net>
- Mail-followup-to: tech_(_at_)_openbsd_(_dot_)_org, Otto Moerbeek <otto_(_at_)_drijf_(_dot_)_net>
Otto Moerbeek wrote:
> This is the piece of code that _is_ relevant:
>
> /*
> * Some programs that create ustar archives append a '/'
> * to the pathname for directories. This clearly violates
> * ustar specs, but we will silently strip it off anyway.
> */
> if (arcn-> name[arcn-> nlen - 1] == '/')
> arcn-> name[--arcn-> nlen] = '\0';
>
>
> As you can see with hexdump -C of archives created by gtar, gtar is
> such a program. I do not feel like changing tar just to accomodate
> non-conforming programs.
OK, thanks for explaining.
# Han
--
(_) Even a blind pig stumbles upon a few acorns.
"==='
" "
Visit your host, monkey.org