FC - tar files (only) containing files with absolute paths displayed as empty

8 views
Skip to first unread message

xhajt03

unread,
Nov 25, 2024, 11:16:16 AM11/25/24
to File Commander
Hi Brian,

Something I already encountered multiple times in the past, but never
found time for investigating and reporting it - quite often, .tar (and
.tgz) are displayed as empty in FileCommander even though there are
files and directories stored in them and e.g. "tar tvf tarfile.tar"
displays the content correctly. After investigating it in more detail,
I discovered, that it happens with files with absolute paths (i.e.
paths starting with '/') - see attachment for an example of such a
file. I also noticed that the Microsoft port of tar (as available in
Win32) and also GNU tar always convert the absolute path to a relative
one ("Removing leading `/' from member names"), which might make it a
bit difficult to create such an example in your environment, but other
tar implementations don't have such a limitation (I used tar from AIX
for producing the attached example).

Could you please have a look at it? FWIW, 7-zip File Manager
differentiates this case when opening/displaying such a file by
displaying the first level as a single underscore character (as
opposed to directly displaying the directories and files in the root
directory of the tar archive).

Thanks in advance

Tomas
test.tar

xhajt03

unread,
Apr 17, 2025, 5:01:18 AMApr 17
to File Commander
Hello,

Any chance to have a look at this issue (see below)?

Thanks

Tomas

Slavik Gnatenko

unread,
Apr 17, 2025, 5:08:39 AMApr 17
to file-co...@googlegroups.com
> GNU tar always convert the absolute path to a relative one
JFYI, GNU tar should do this only by default. Its doc even contains the separate section about this topic: https://www.gnu.org/software/tar/manual/tar.html#absolute

Regards, Slavik

--
You received this message because you are subscribed to the Google Groups "File Commander" group.
To unsubscribe from this group and stop receiving emails from it, send an email to file-commande...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/file-commander/CAB6h4BE4qCuO9GJznejUWGKcW37pdSYvcvsdvwhHq-PNiVexVg%40mail.gmail.com.

Brian Havard

unread,
Apr 19, 2025, 9:39:38 PMApr 19
to file-co...@googlegroups.com
On 17/4/25 19:01, xhajt03 wrote:
> Any chance to have a look at this issue (see below)?

I have actually had a go at fixing this. I'll put up some fresh builds
shortly.

xhajt03

unread,
Apr 22, 2025, 4:28:33 AMApr 22
to file-co...@googlegroups.com
Many thanks, it indeed works now!

Just out of curiousity - is there any chance to recognize (within FC
;-) ) whether particular items within the stored files have absolute
paths (since in theory, a tar archive may contain items with both
absolute and relative paths - obviously, it isn't common, but it is
possible)? Note that this isn't really an issue for me, just an idea
coming to my mind...

Thanks again!

Tomas
Reply all
Reply to author
Forward
0 new messages