]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: Change ldconfig auxcache magic number (bug 32231)
authorFlorian Weimer <fweimer@redhat.com>
Mon, 28 Oct 2024 13:45:30 +0000 (14:45 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 28 Oct 2024 13:45:30 +0000 (14:45 +0100)
In commit c628c2296392ed3bf2cb8d8470668e64fe53389f (elf: Remove
ldconfig kernel version check), the layout of auxcache entries
changed because the osversion field was removed from
struct aux_cache_file_entry.  However, AUX_CACHEMAGIC was not
changed, so existing files are still used, potentially leading
to unintended ldconfig behavior.  This commit changes AUX_CACHEMAGIC,
so that the file is regenerated.

Reported-by: DJ Delorie <dj@redhat.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
elf/cache.c

index 8a618e11fa414abb05966125c70bd02bd3116560..62d681df42746d55300d8d64e706fb3c886c74f4 100644 (file)
@@ -820,7 +820,7 @@ struct aux_cache_entry
   struct aux_cache_entry *next;
 };
 
-#define AUX_CACHEMAGIC         "glibc-ld.so.auxcache-1.0"
+#define AUX_CACHEMAGIC         "glibc-ld.so.auxcache-2.0"
 
 struct aux_cache_file_entry
 {