[Rpm-maint] [rpm-software-management/rpm] Packaging a fifo with rpm 4.18rc1 seems to hang (Issue #2195)
Richard Purdie
notifications at github.com
Sun Sep 18 16:24:28 UTC 2022
With rpm 4.18rc1 we've noticed that dnf seems to hang when installing a package containing a fifo. The hang is from the new openat() call within fsmOpenat() which dnf is calling from librpm.
Changing the condition in rpmPackageFilesInstall() from:
if (!rc && fd == -1 && !S_ISLNK(fp->sb.st_mode)) {
to
if (!rc && fd == -1 && !S_ISLNK(fp->sb.st_mode) && !S_ISFIFO(fp->sb.st_mode)) {
seems to avoid it.
In the interests of full disclosure, this was reproduced in Yocto Project and was within our fakeroot emulation so it is possible there is some kind of bad interaction happening there. I've not tried to reproduce outside our fakeroot environment as yet as that isn't easy for us but I'm guessing you can test that more easily and may want to fix this before 4.18 is released if it is a real issue.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2195
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/2195 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220918/6e923f7e/attachment.html>
More information about the Rpm-maint
mailing list