This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v3] elf: Add tst-ldconfig-bad-aux-cache test [BZ #18093]


On Mon, 13 May 2019, Carlos O'Donell wrote:

> sysdeps/generic/ldconfig.h:
> 
>  48 /* Name of auxiliary cache.  */
>  49 #define _PATH_LDCONFIG_AUX_CACHE "/var/cache/ldconfig/aux-cache"
>  50 
> 
> However, we do allow users to override with --localstatedir and provide
> an alternative path instead of the default /var. Nobody has probably
> tried to do this or they just worked around it.
> 
> So the build of glibc itself will appear to ignore --localstatedir
> even when specified and read the aux-cache from a fixed location.

There are lots of other places with such hardcoded paths.  See e.g. bug 
20138 asking for --sysconfdir to be respected.  Note that some such paths 
are in installed headers, including paths.h; should those paths in 
installed headers also depend on configure options?

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]