[PATCH v2 1/2] rtld: Add --no-default-paths option

Fergus Dall sidereal@google.com
Sun Jun 6 16:27:03 GMT 2021


None of the other options in that file use "bool" even when they seem
to only be used as booleans. I assumed this was out of a desire to
keep C89 compatibility, though now that I look I see lots of other
places in the codebase that don't do that.

On Fri, May 28, 2021 at 1:08 AM Florian Weimer <fweimer@redhat.com> wrote:
>
> * Fergus Dall via Libc-alpha:
>
> > diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
> > index e383aa1dc3..f9f2c4126a 100644
> > --- a/sysdeps/generic/ldsodefs.h
> > +++ b/sysdeps/generic/ldsodefs.h
> > @@ -551,6 +551,9 @@ struct rtld_global_ro
> >    /* Do we read from ld.so.cache?  */
> >    EXTERN int _dl_inhibit_cache;
> >
> > +  /* Do we search the default system paths? */
> > +  EXTERN int _dl_search_default_paths;
>
> Maybe use a bool for this?
>
> Thanks,
> Florian
>


More information about the Libc-alpha mailing list