Micha? Górny <mgo...@gentoo.org> wrote: > Hello, > > I've been tinkering with the tar format limitations and noticed that GNU > tar (as of v1.30) misbehaves when given ustar-format archive created by > bsdtar (from libarchive) and using 32-char long user/group name. > > The output is: > > $ tar -tvf test.tar > -rw-r--r-- > verylongverylongverylongverylongverylongverylongverylongverylong000000 > /verylongverylongverylongverylong000000 5 2018-11-24 09:28 input.txt
Well, this is not a ustar archive since ustar requires these two strings to be null terminated. A program however should be able to deal with such an incorrect archive. The standard only permits name, linkname and prefix to be not nul terminated in case the whole string length is used. Jörg -- EMail:jo...@schily.net (home) Jörg Schilling D-13353 Berlin joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'