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] Remove compat from DEFAULT_CONFIG lookup strings


On Aug 29 2017, Steve Ellcey <sellcey@cavium.com> wrote:

> diff --git a/nss/nsswitch.c b/nss/nsswitch.c
> index 834bef6..3de085e 100644
> --- a/nss/nsswitch.c
> +++ b/nss/nsswitch.c
> @@ -40,6 +40,19 @@
>  #include "nsswitch.h"
>  #include "../nscd/nscd_proto.h"
>  #include <sysdep.h>
> +#include <config.h>
> +
> +#ifdef LINK_OBSOLETE_NSL
> +# define DEFAULT_CONFIG "compat [NOTFOUND=return] files"
> +#else
> +# define DEFAULT_CONFIG "files"
> +#endif
> +
> +#ifdef LINK_OBSOLETE_RPC
> +# define DEFAULT_DEFCONFIG "nis [NOTFOUND=return] files"
> +#else
> +# define DEFAULT_DEFCONFIG "files"
> +#endif

nss_nis is part of obsolete-nsl, not obsolete-rpc.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


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