GNU TAR long file names support

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
tairus
Junior Member
Junior Member
Posts: 7
Joined: 2006-03-17, 08:49 UTC

GNU TAR long file names support

Post by *tairus »

I've discovered TC doesn't handle TAR with long file names.

here is example i've made: http://www.mediafire.com/download/carm5nkv60aonsf/test.tar

This archive has been created by tar from busybox (v1.22.1) with
CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y

the name of archived file is:
test/very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_/very_very_very_very_very_very_very_very_very_very_very_very_very_very_/test.txt

Files and folders with long (>100) names are prepended by header with type 'L' containing full name.
There is another header with type 'x' you can simply skip. It contains SELinux attributes.

Total Commander v8.51a
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50421
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Files and folders with long (>100) names are prepended by header with type 'L' containing full name.
This is already supported.
There is another header with type 'x' you can simply skip. It contains SELinux attributes.
This seems to be your problem here - TC only uses type 'L' headers which come directly before the actual file header. I will check whether I can support that. Are there any other headers which may be in between the type 'L' and the file header which TC would need to ignore?
Author of Total Commander
https://www.ghisler.com
Post Reply