ldconfig: Fixes for skipping temporary files.
commitcfb5a97a93ea656e3b2263e42142a4032986d9ba
authorFlorian Weimer <fweimer@redhat.com>
Mon, 23 Oct 2023 10:53:16 +0000 (23 12:53 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 20 Nov 2023 09:57:34 +0000 (20 10:57 +0100)
tree8c8527556c740080ae9ea8325e3de74703adcb56
parente21aa9b9cc6083d3b1da72c81e7a4e81662e32ba
ldconfig: Fixes for skipping temporary files.

Arguments to a memchr call were swapped, causing incorrect skipping
of files.

Files related to dpkg have different names: they actually end in
.dpkg-new and .dpkg-tmp, not .tmp as I mistakenly assumed.

Fixes commit 2aa0974d2573441bffd59 ("elf: ldconfig should skip
temporary files created by package managers").
elf/ldconfig.c