bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tar 1.35: --delete creates tarfiles with duplicate file paths


From: Pavel Raiskup
Subject: Re: tar 1.35: --delete creates tarfiles with duplicate file paths
Date: Fri, 11 Aug 2023 17:01:38 +0200

On pátek 11. srpna 2023 16:49:31 CEST Pavel Raiskup wrote:
> On pátek 11. srpna 2023 14:32:18 CEST Ed Santiago wrote:
> > On Fri, Aug 11, 2023 at 08:33:03AM +0200, Sergey Poznyakoff wrote:
> > > Hi Ed,
> > > 
> > > > The --delete flag in 1.35 can generate a tarball that is
> > > > unreadable by podman and possibly other tools using the
> > > > Go tar library:
> > > 
> > > Unfortunately I cannot reproduce it,
> > > 
> > > >     $ podman create --name a quay.io/libpod/testimage:20221018
> > > >     $ podman export a >/tmp/a.tar
> > > >     $ tar --delete -f /tmp/a.tar home/podman/pause
> > > 
> > > Can you send me the a.tar archive before and after delete.
> > > or put them somewhere so I can download them?
> > 
> > Curious! It's 100% reproducible on my end. I've attached ante
> > and post (before/after, but ASCII sortable) to:
> > 
> >     https://bugzilla.redhat.com/show_bug.cgi?id=2230127
> > 
> > ...and added a comment describing the dups found with
> > 
> >     tar tf a.post.tar | sort | uniq -cd
> 
> Is this related to some of the Fedora downstream patches?  FTR, here are
> "vanilla" GNU tar RPM builds:
> https://copr.fedorainfracloud.org/coprs/praiskup/tar-upstream-head/
> 
> The CI is has not been building for a few days now, needs upstream fix:
> https://www.mail-archive.com/bug-tar@gnu.org/msg06277.html

I can confirm I can reproduce the behavior even with vanilla tar (in
Fedora Rawhide container, on Fedora 38 host).

Pavel


> Adding maintainer to CC.
> Pavel
> 
> > Hope this helps,
> > Ed
> > 
> 
> 







reply via email to

[Prev in Thread] Current Thread [Next in Thread]