From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 129501 invoked by alias); 31 Aug 2017 07:21:16 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 129452 invoked by uid 89); 31 Aug 2017 07:21:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.suse.de From: Andreas Schwab To: Steve Ellcey Cc: Joseph Myers , DJ Delorie , libc-alpha@sourceware.org Subject: Re: [PATCH] Remove compat from DEFAULT_CONFIG lookup strings References: <1503951778.28672.139.camel@cavium.com> <1503957036.28672.144.camel@cavium.com> <1504033460.5204.8.camel@cavium.com> X-Yow: I'm in a twist contest!! I'm in a bathtub! It's on Mars!! I'm in tip-top condition! Date: Thu, 31 Aug 2017 07:21:00 -0000 In-Reply-To: <1504033460.5204.8.camel@cavium.com> (Steve Ellcey's message of "Tue, 29 Aug 2017 12:04:20 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2017-08/txt/msg01315.txt.bz2 On Aug 29 2017, Steve Ellcey 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 > +#include > + > +#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."