[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] ustar-format archives with 32-char long user/group names are m
From: |
Michał Górny |
Subject: |
[Bug-tar] ustar-format archives with 32-char long user/group names are misinterpreted |
Date: |
Sat, 24 Nov 2018 09:59:10 +0100 |
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
Note that it does not enforce the 32-octet limit on the fields,
and concatenates the values with the fields following them. I've
already reported the issue to libarchive as well [1] since it seems to
violate the POSIX ustar format but I suppose GNU tar might want to
handle this problem more gracefully.
To reproduce:
useradd verylongverylongverylongverylong
echo test > input.txt
chown verylongverylongverylongverylong:verylongverylongverylongverylong
input.txt
bsdtar --format=ustar -cf test.tar input.txt
tar -tvf test.tar
[1]:https://github.com/libarchive/libarchive/issues/1093
--
Best regards,
Michał Górny
signature.asc
Description: This is a digitally signed message part
- [Bug-tar] ustar-format archives with 32-char long user/group names are misinterpreted,
Michał Górny <=