[Rpm-maint] [rpm-software-management/rpm] Add support to rpmspec for reading content via stdin (Issue #4023)
Коренберг Марк
notifications at github.com
Mon Nov 10 14:15:03 UTC 2025
socketpair left a comment (rpm-software-management/rpm#4023)
@dmnks The quick-fix - if non-plainfile detected (via `fstat()`) is to create a temporary file (preferably O_TMPFILE|O_CLOEXEC. If not - `O_CREAT|O_EXCL|O_CLOEXEC` + `unlink()` immediately) and copy contents there. Next use the temporary file as usual. More complex to implement - improve buffering in memory while reading file -- i.e. all `seek()`s back and `read()`s should read from application's memory, not from FD.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/4023#issuecomment-3511926894
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/4023/3511926894 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20251110/5b6e4dcb/attachment.htm>
More information about the Rpm-maint
mailing list