Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 141197 - uClibc populates nano seconds incorrectly which breaks tar
Summary: uClibc populates nano seconds incorrectly which breaks tar
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
: 157290 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-20 11:12 UTC by Christian Heim (RETIRED)
Modified: 2007-09-02 19:43 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
stat test showing nsec's being garbage (test.c,1.59 KB, text/plain)
2006-12-10 14:40 UTC, SpanKY
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Heim (RETIRED) gentoo-dev 2006-07-20 11:12:15 UTC
Currently the ~arch version of tar is broken on uclibc/x86. No idea if other arches are also affected.

It renders a system useless by unpacking the binary packages without *any* permissions.
Comment 1 solar (RETIRED) gentoo-dev 2006-07-20 11:33:54 UTC
The way this package breaks and the steps to reproduce are easy.

First make a backup of a good tar binary.
merge the .91 and simply extract a tarball which contains ../../ style symlinks.
Any file which contains the ../../ style symlinks will be extracted 
as a 0 byte file with the perms of 0000
For testing I used the libc itself.

This package is p.masked in our uclibc profiles top level now.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-08-08 06:50:55 UTC
*** Bug 143206 has been marked as a duplicate of this bug. ***
Comment 3 Natanael Copa 2006-12-06 10:47:45 UTC
Same thing happens with tar-1.16-r2, current stable. Please mask >=app-arch/tar-1.15.91 for uClibc.

Comment 4 Christian Heim (RETIRED) gentoo-dev 2006-12-09 05:24:20 UTC
(In reply to comment #3)
> Same thing happens with tar-1.16-r2, current stable. Please mask
> >=app-arch/tar-1.15.91 for uClibc.

Done.
Comment 5 SpanKY gentoo-dev 2006-12-09 17:59:51 UTC
*** Bug 157290 has been marked as a duplicate of this bug. ***
Comment 6 SpanKY gentoo-dev 2006-12-10 14:39:14 UTC
not a bug in tar, uClibc's stat() function screws up nano seconds in the time struct
Comment 7 SpanKY gentoo-dev 2006-12-10 14:40:24 UTC
Created attachment 103765 [details]
stat test showing nsec's being garbage
Comment 8 SpanKY gentoo-dev 2007-01-29 16:25:08 UTC
ive fixed this in 0.9.28.1
Comment 9 Aurélien Francillon 2007-09-02 19:43:08 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Same thing happens with tar-1.16-r2, current stable. Please mask
> > >=app-arch/tar-1.15.91 for uClibc.
> 
> Done.
> 

As the bug is fixed in uclibc, can you unmask tar in profiles/uclibc/package.mask ? 

thanks in advance,
Aurélien