<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Jan 20, 2007, at 18:48, Ronald Oussoren wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Lucida Grande" size="4" style="font: 13.0px Lucida Grande">I used to use tarfile on 10.3 to extract a bz2 compressed tarball. I</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Lucida Grande" size="4" style="font: 13.0px Lucida Grande">tried the code today on 10.4, and untaring fail silently after about</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Lucida Grande" size="4" style="font: 13.0px Lucida Grande">5% of tarball content, without any error.</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px; font: 13.0px Lucida Grande; min-height: 16.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Lucida Grande" size="4" style="font: 13.0px Lucida Grande">This is the failing code:</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px; font: 13.0px Lucida Grande; min-height: 16.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Lucida Grande" size="4" style="font: 13.0px Lucida Grande"><SPAN class="Apple-converted-space"> </SPAN>tar = tarfile.open(os.path.join(SHARE, 'underlay.tar.bz2'),</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Lucida Grande" size="4" style="font: 13.0px Lucida Grande">mode='r:bz2')</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Lucida Grande" size="4" style="font: 13.0px Lucida Grande"><SPAN class="Apple-converted-space"> </SPAN>for member in tar:</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Lucida Grande" size="4" style="font: 13.0px Lucida Grande"><SPAN class="Apple-converted-space"> </SPAN>tar.extract(member, WIKI)</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Lucida Grande" size="4" style="font: 13.0px Lucida Grande"><SPAN class="Apple-converted-space"> </SPAN>tar.close()</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px; font: 13.0px Lucida Grande; min-height: 16.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Lucida Grande" size="4" style="font: 13.0px Lucida Grande">The tarball contains 794 pages, but this code will extract only 47</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Lucida Grande" size="4" style="font: 13.0px Lucida Grande">pages. Again, this used to work correctly about 1 year ago with 10.3.7.</FONT></P> </BLOCKQUOTE><P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Lucida Grande; min-height: 16.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Lucida Grande" size="4" style="font: 13.0px Lucida Grande">The script looks fine. How did you create the archive?</FONT></P> </BLOCKQUOTE></DIV><BR><DIV> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Lucida Grande; min-height: 16.0px">The original tar was created on Linux around a year ago, I don't know how it was created. Trying to extract the original file fail after 42 members.</P><P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Lucida Grande; min-height: 16.0px"><BR class="khtml-block-placeholder"></P><P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Lucida Grande; min-height: 16.0px">I extracted the tarball and created it again with /usr/bin/tar (GNU tar) 1.14. This version seems to be the same version installed by default on 10.4.8. Trying to extract the new tarball fail after 47 members.</P><P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Lucida Grande; min-height: 16.0px"><BR class="khtml-block-placeholder"></P><P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Lucida Grande; min-height: 16.0px"><BR class="khtml-block-placeholder"></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Lucida Grande" size="4" style="font: 13.0px Lucida Grande">Best Regards,</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Lucida Grande; min-height: 16.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Lucida Grande" size="4" style="font: 13.0px Lucida Grande">Nir Soffer</FONT></P> </DIV><BR></BODY></HTML>