[Rpm-maint] [rpm-software-management/rpm] Non-root owned symlink causes install failure (Issue #3100)

Michal Domonkos notifications at github.com
Wed May 15 14:49:19 UTC 2024


**Describe the bug**
Installing a package that ships a file in a directory symlink that's owned by a non-root user results in a cpio unpacking error.

**To Reproduce**
Steps to reproduce the behavior:
1. `useradd user`
2. `chown -h user /lib`
3. `dnf install -y kernel-core`

**Expected behavior**
No error.

**Output**
```
error: unpacking of archive failed on file /lib/modules/6.8.9-300.fc40.x86_64/build;6644c9d4: cpio: open failed - Not a directory
```

**Environment**
 - OS / Distribution: Fedora 40
 - Version rpm-4.19.1.1

**Additional context**
Filed originally in RH Jira: https://issues.redhat.com/browse/RHEL-33393. The reporter has suggested the culprit in the second comment in that issue.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3100
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/3100 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240515/e0deff82/attachment-0001.html>


More information about the Rpm-maint mailing list