[Top][All Lists]

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

[Bug-cpio] Strange CPIO behavior with links

From: John Worley
Subject: [Bug-cpio] Strange CPIO behavior with links
Date: Mon, 4 Dec 2017 13:59:43 -0700
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.5.0

Hi -

    I recently found some strange CPIO behavior. I have a process
that starts with the IANA time-zone database releases, part of which
is creating a CPIO archive from the etc/zoneinfo directory extracted
from each release.

    The process worked fine until the 2017c release, where we started
getting errors in the UTC timezone. I tracked it down to the following:
when the archive is created by version 2.11, the restored directory has
bad links, even if extracted by earlier (2.9) and later (2.12) versions.

    I've attached the following files:

    original.tar.gz      A gzip'd tar of the original directory (zoneinfo)
    createIt             A bash script to generate an archive with a
                         specific cpio executable
    archive2-11.cpio.gz  A gzip'd cpio archive created by CPIO 2.11
    archive2-12.cpio.gz  A gzip'd cpio
archive created by CPIO 2.12

    For each CPIO archive, I extract as follows:

        gunzip < archive.cpio.gz | cpio -iBdum --quiet

archive2-11.cpio.gz is used, you can see the bad links
as follows:
bash> find zoneinfo --samefile zoneinfo/GMT
zoneinfo/America/Argentina/Buenos_Aires   ???

zoneinfo/America/Buenos_Aires             ???
    Clearly, the time-zone information for Buenos Aires shouldn't
be linked to GMT. However, if
archive2-12.cpio.gz is used, the
expected linkages are there.

    This occurs on both ext3 and ext4 file systems.

    Please let me know if you need any additional information.


Attachment: createIt
Description: Text document

Attachment: archive2-12.cpio.gz
Description: GNU Zip compressed data

Attachment: archive2-11.cpio.gz
Description: GNU Zip compressed data

Attachment: original.tar.gz
Description: GNU Zip compressed data

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

reply via email to

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