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
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