Erlang Mailing Lists

Author Message

<  Erlang patches mailing list  ~  Patch for stdlib/erl_tar.erl

Erik.Reitsma at etm.erics
Posted: Fri Jul 04, 2003 7:16 am Reply with quote
Guest
Hi,

While using systools:make_tar/1 I found that the implementation of tar is incorrect. The problem occurs when the file name (including path) is more than 100 bytes long. The tar format has a provision for that case, but then the tar file should indicate that it has the new format. This is indicated using the 'magic' field. The value of this field should be "ustar" followed by a zero. In the current implementation the magic field is filled with zeros, so a regular tar assumes that the file has an old format, and part of the path is lost when untarring.

I have attached the patch.

Good to see the mailing list back online, b.t.w.

Regards,
*Erik.

Erik Reitsma
System Engineer, Technology Strategies
Service Network and Applications

Ericsson Telecommunicatie B.V.
Research and Development
Tel.: +31 161 242582
Fax: +31 161 242206
erik.reitsma_at_etm.ericsson.se
http://www.ericsson.nl



Post generated using Mail2Forum (http://m2f.sourceforge.net)

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum