[Rpm-maint] [rpm-software-management/rpm] Unpack failure on update can cause unmodified %config files to be erased (Issue #3284)
Panu Matilainen
notifications at github.com
Fri Oct 18 12:40:49 UTC 2024
The actual issue is that any file unpack failure during an update can cause unmodified %config files to be deleted on the cleanup stage. This is because normally to-be-installed files are unpacked to a temporary suffix which is then safe to remove, but unmodified config files are handled with FA_TOUCH to only update their metadata instead of rewriting the file, and so must be skipped during cleanup. Affects all rpm >= 4.14 versions AFAICS.
If %_minimize_writes is used, this will have a much wider impact than just unmodified config files.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3284#issuecomment-2422385745
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/3284/2422385745 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241018/89935e18/attachment.html>
More information about the Rpm-maint
mailing list