opnsense-src/lib/libc/net
Mark Johnston 49bc071f40 nsswitch.conf: Avoid modification after installation
To implement WITHOUT_NIS, we have a hack in the build which modifies the
installed nsswitch.conf to remove NIS compat providers and databases.
This hack operates on the installed nsswitch.conf, which means that the
installed file size won't match that listed in the metalog.

One option would be to maintain two copies of nsswitch.conf, one for
each configuration, but that would result in duplication and I don't see
a clear way around that.

Instead, stage a copy of nsswitch.conf in the libc objdir, and modify
that one before installing, so that the version recorded in the metalog
matches what actually gets installed.

PR:		209718
Reviewed by:	kevans, emaste
Sponsored by:	Klara, Inc.
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D49300
2025-04-07 12:42:08 +00:00
..
base64.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
byteorder.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
ether_addr.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
ethers.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
eui64.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
eui64.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
gai_strerror.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
gai_strerror.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
getaddrinfo.3 getaddrinfo.{1,3}: Cross-reference ip6addrctl(8) 2024-09-06 12:34:32 -06:00
getaddrinfo.c libc/getaddrinfo(2): return EAI_AGAIN on nameserver timeout 2025-03-28 14:36:40 -07:00
gethostbydns.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
gethostbyht.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
gethostbyname.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
gethostbynis.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
gethostnamadr.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
getifaddrs.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
getifaddrs.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
getifmaddrs.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
getifmaddrs.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
getipnodebyname.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
getnameinfo.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
getnameinfo.c libc/getnameinfo: stop adding NI_NUMERICHOST where inappropriate 2024-07-26 11:03:56 +00:00
getnetbydns.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
getnetbyht.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
getnetbynis.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
getnetent.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
getnetnamadr.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
getproto.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
getprotoent.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
getprotoent.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
getprotoname.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
getservent.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
getservent.c libc: Annotate a couple of local functions as such 2024-01-29 11:44:36 -05:00
hesiod.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
hesiod.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
hosts Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
hosts.equiv Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
if_indextoname.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
if_indextoname.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
if_nameindex.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
if_nametoindex.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
inet.3 manuals: Remove trailing spaces 2024-11-04 11:26:14 -04:00
inet6_opt_init.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
inet6_option_space.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
inet6_rth_space.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
inet6_rthdr_space.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
inet_net.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
ip6opt.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
linkaddr.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
linkaddr.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
Makefile.inc nsswitch.conf: Avoid modification after installation 2025-04-07 12:42:08 +00:00
map_v4v6.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
name6.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
netdb_private.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
networks lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
nscache.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
nscachedcli.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
nsdispatch.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
nsdispatch.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
nslexer.l Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
nsparser.y libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
nss_backends.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
nss_compat.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
nsswitch.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ntoh.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
protocols lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
rcmd.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
rcmd.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
rcmdsh.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rcmdsh.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
res_config.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
resolver.3 resolv: Add a required include to resolv.h 2024-01-08 20:52:08 +09:00
rthdr.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
sctp_bindx.3 sctp: update manpages 2024-02-02 18:35:00 -07:00
sctp_connectx.3 sctp: update manpages 2024-02-02 18:35:00 -07:00
sctp_freepaddrs.3 sctp: update manpages 2024-02-02 18:35:00 -07:00
sctp_getaddrlen.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
sctp_getassocid.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
sctp_getpaddrs.3 sctp: update manpages 2024-02-02 18:35:00 -07:00
sctp_opt_info.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
sctp_recvmsg.3 sctp: document sctp_recvmsg as implemented 2024-05-02 15:17:43 +02:00
sctp_send.3 sctp: update manpages 2024-02-02 18:35:00 -07:00
sctp_sendmsg.3 sctp: update manpages 2024-02-02 18:35:00 -07:00
sctp_sys_calls.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
sockatmark.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
sockatmark.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
sourcefilter.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
sourcefilter.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
Symbol.hesiod.map libc: only export hesiod symbols when enabled 2024-04-16 22:14:20 +01:00
Symbol.map libc: don't try to export _nsdbtdump 2024-04-16 22:14:20 +01:00
vars.c libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00