bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] Incompatible behavior between 1.23 and 1.27?


From: Florian Fainelli
Subject: Re: [Bug-tar] Incompatible behavior between 1.23 and 1.27?
Date: Fri, 29 Apr 2016 19:54:26 -0700

2016-04-29 19:31 GMT-07:00 Florian Fainelli <address@hidden>:
> 2016-04-27 13:20 GMT-07:00 Florian Fainelli <address@hidden>:
>> Hi all,
>>
>> (please CC me as I am not subscribed)
>>
>> I have the following tar archive being constructed like this:
>>
>> tar -C .. -cf ../rootfs-$(DOTVERSION).tar rootfs
>> tar -C .. -rf ../rootfs-$(DOTVERSION).tar -h rootfs/misc/release_builds
>>
>> This done so as to de-reference just that file, there are other symbolic
>> links under rootfs/ that I do not want to de-reference, just this
>> particular one.
>>
>> Now, while extracting this tar archive on two different systems I
>> noticed different behaviors:
>>
>> - tar 1.23 extracts this just fine and rootfs/misc/release_builds
>> ends-up being a regular file
>>
>> - tar 1.27 on the other extracts the file, but still has
>> rootfs/misc/release_builds as a symbolic link
>
> So it started to break as early as 1.24 actually, I could not quite
> run a successful bisection yet because the gnulib we get from
> ./bootstrap is newer than what tar is expected to be using (if you
> know which gnulib version tar 1.23 and tar 1.24 I could pinpoint
> exaclty when it started to break).
>
> Also tried to create two tar files and then concatenate them, but it
> produced the same results with the same versions, which is reinsuring
> in some ways. I would really be curious to see if there is an easy way
> to get the 1.23 behavior back with newer versions of tar. FWIW,
> attached is the test case that I used.

Sometimes you got to spend some time thinking about what is it that
you are trying to do here, excluding the file from the original
archive creation and, well guess what happens, it just works! Sorry
for the noise, hopefully this is useful to somebody else who got as
confused as I was :)
-- 
Florian



reply via email to

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