bug-cpio
[Top][All Lists]
Advanced

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

Re: Regression: 2.14 does not create directories of symlinks


From: Jakub Jankowski
Subject: Re: Regression: 2.14 does not create directories of symlinks
Date: Sat, 13 Jan 2024 02:42:01 +0100
User-agent: Mozilla Thunderbird

On 17/05/2023 20.34, Sergey Poznyakoff wrote:
Hi Kris Karas (Bug Reporting) <bugs-a21@moonlit-rail.com> ha escrit:

        # rpm2cpio <
        # ../source/RPMS/libreoffice7.4-freedesktop-menus-7.4.7-2.noarch.rpm

It would be very helpful if you included the resulting cpio archive.
Without it there's not much I can say on the subject.


Here's a minimal reproducer:

$ mkdir -p usr/bin usr/sbin
$ touch usr/bin/file
$ ln -s ../bin/file usr/sbin/file
$ tree
.
└── usr
    ├── bin
    │   └── file
    └── sbin
        └── file -> ../bin/file

$ find . -mindepth 3 | cpio -H newc -o > /tmp/repro.cpio
1 block

$ bsdtar tvf /tmp/repro.cpio
lrwxrwxrwx  1 1000   1000       11 Jan 13 01:54 usr/sbin/file -> ../bin/file
-rw-r--r--  1 1000   1000        0 Jan 13 01:54 usr/bin/file

$ mkdir ../unpack
$ cd ../unpack
$ cpio --extract --make-directories --no-absolute-filenames < /tmp/repro.cpio
cpio: usr/sbin/file: Cannot open: No such file or directory
1 block
$ echo $?
2
$ tree
.
└── usr
    └── bin
        └── file
$

This is cpio 2.14-1 on Arch Linux; same happens on Fedora 39 with cpio-2.14-4.fc39.x86_64. Downgrading to 2.13 resolves the issue.

Cheers,
 J.



reply via email to

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