RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1487673 - cpio does not preserve soft link time
Summary: cpio does not preserve soft link time
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: cpio
Version: 8.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: 8.4
Assignee: Ondrej Dubaj
QA Contact: Vaclav Danek
URL:
Whiteboard:
Depends On:
Blocks: 1486364 1894575
TreeView+ depends on / blocked
 
Reported: 2017-09-01 14:53 UTC by Coby Isley
Modified: 2024-10-01 16:05 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 14:35:41 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Coby Isley 2017-09-01 14:53:06 UTC
Description of problem:

When extracting a cpio archive and attempting to preserve timestamps, the timestamps of soft links are not preserved.

This results in erroneous date differences between the cpio archive and its extracted content.

Version-Release number of selected component (if applicable):

cpio-2.11-24.el7.x86_64


Steps to Reproduce:
1.cd /usr/lib
2.find . -depth -print0 | cpio --null -pmvd /tmp/test.cpio
3.ls -l /usr/lib
4.ls -l /tmp/test.cpio

Actual results:
timestamp for normal files and directories is preserved, but not for soft links

Expected results:
timestamp for all files preserved

Additional Info:

A bug appears to be open against Fedora as well here: https://bugzilla.redhat.com/show_bug.cgi?id=1486364

Comment 3 Pavel Raiskup 2017-09-02 08:27:09 UTC
Thanks for the report.  This is upstream issue, proposal:
http://www.mail-archive.com/bug-cpio@gnu.org/msg00605.html

Comment 7 Pavel Raiskup 2018-08-23 13:36:28 UTC
Another upstream ping:
https://www.mail-archive.com/bug-cpio@gnu.org/msg00620.html

Comment 50 errata-xmlrpc 2021-05-18 14:35:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: cpio security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1582


Note You need to log in before you can comment on or make changes to this bug.