Bug 1487673

Summary: cpio does not preserve soft link time
Product: Red Hat Enterprise Linux 8 Reporter: Coby Isley <cisley>
Component: cpioAssignee: Ondrej Dubaj <odubaj>
Status: CLOSED ERRATA QA Contact: Vaclav Danek <vdanek>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.3CC: databases-maint, hhorak, jamills, kwalker, odubaj, panovotn, pkubat, praiskup, vdanek
Target Milestone: betaKeywords: Reproducer, TestCaseNeeded
Target Release: 8.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 14:35:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1486364, 1894575    

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