bb tar issues

Denys Vlasenko vda.linux at googlemail.com
Thu May 6 11:13:39 UTC 2010


On Thursday 06 May 2010 10:39, Carlo Landmeter wrote:
> Dear list,
> 
> I have created 2 archives of the same src on my dreamhost.com account.
> When i try to tar zxvf with (BusyBox v1.16.0) on alpinelinux i get this msg:
> 
> tar: corrupted octal value in tar header
> 
> When i install GNU tar it works as expected.
> 
> Following files are created with tar (GNU tar) 1.16:
> 
> http://alpine.nethq.org/clandmeter/src/freepbx3.tgz
> http://alpine.nethq.org/clandmeter/src/freepbx30.tgz

tar header format:

        char mode[8];             /* 100-107 */
        char uid[8];              /* 108-115 */
        char gid[8];              /* 116-123 */
        char size[12];            /* 124-135 */
        char mtime[12];           /* 136-147 */
        char chksum[8];           /* 148-155 */

In freepbx3.tgz after unpacking:

00000000  66 72 65 65 70 62 78 2d  76 33 2f 00 00 00 00 00  |freepbx-v3/.....|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000040  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000060  00 00 00 00 30 30 30 30  37 37 35 00 80 00 00 00  |....0000775.....|
00000070  00 2d 1f c9 31 36 36 31  36 30 37 00 30 30 30 30  |.-..1661607.0000|
00000080  30 30 30 30 30 30 30 00  31 31 33 37 30 33 32 30  |0000000.11370320|
00000090  36 33 37 00 30 31 33 32  34 32 00 20 35 00 00 00  |637.013242. 5...|
...

uid field is: 80 00 00 00 00 2d 1f c9

Wow. It means uid is > 2097151 (07777777 octal).
DO you really have such huge uid when you pack the file?
-- 
vda


More information about the busybox mailing list