[dev] tar filename handling

From: Страхиња Радић <contact_AT_strahinja.org>
Date: Sun, 31 Jul 2022 21:31:51 +0200

I was using suckless tar to create an archive of a Python package, and hit a
limit. When checking out the code, I noticed that the name of the file is 100
characters long, however there is also the prefix field which is 155 characters
long, and the actual path should be combined from prefix (if present) + name.

https://git.suckless.org/sbase/file/tar.c.html#l36

The path that failed was

./sucks/lib/python3.9/site-packages/docutils/parsers/__pycache__/commonmark_wrapper.cpython-39.opt-1.pyc

which is 104 characters long. On further inspection, it seems that the prefix
field is taken into account with -x and -t ("small dance..."):

https://git.suckless.org/sbase/file/tar.c.html#l460

but not with -c:

https://git.suckless.org/sbase/file/tar.c.html#l204

I just wanted to know if this is planned for a future update. If not, I'd like
to try to implement long (>100) path splitting for -c.

Received on Sun Jul 31 2022 - 21:31:51 CEST

This archive was generated by hypermail 2.3.0 : Sun Jul 31 2022 - 21:36:08 CEST