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

Re: tar and trailing slash for dirnames.



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