[PATCH] elf: ldconfig should skip temporary files created by package managers

Florian Weimer fweimer@redhat.com
Sat Oct 21 22:20:53 GMT 2023


* Cristian Rodríguez:

> On Fri, Oct 20, 2023 at 9:30 AM Florian Weimer <fweimer@redhat.com> wrote:
>
>> This avoids crashes due to partially written files, after a package
>> update is interrupted.
>
> Do you know if rpm at least as been fixed not to do that ?  

I think DNF/RPM nowadays intercept SIGINT during file writing, but
signals are enabled when scriptlet execution starts, so you probably
still get a corrupted system when you hit ^C.

I don't think there are plans to use O_TMPFILE to prevent partial files
from showing up.  So if there is a system crash, partial files could
still be left behind even if RPM is not interrupted so easily anymore.

Thanks,
Florian



More information about the Libc-alpha mailing list