git: 9b20ab1e1ef7 - main - local-unbound-setup: Disable the libc subscriber.

From: Dag-Erling Smørgrav <des_at_FreeBSD.org>
Date: Fri, 24 Mar 2023 20:46:18 UTC
The branch main has been updated by des:

URL: https://cgit.FreeBSD.org/src/commit/?id=9b20ab1e1ef7d3de672ec20a62f26a605db8d3d0

commit 9b20ab1e1ef7d3de672ec20a62f26a605db8d3d0
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2023-03-24 20:45:24 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2023-03-24 20:46:09 +0000

    local-unbound-setup: Disable the libc subscriber.
    
    This is the correct way to prevent resolvconf from updating resolv.conf.
    
    Reviewed by:    cy
    Differential Revision:  https://reviews.freebsd.org/D39262
---
 usr.sbin/unbound/setup/local-unbound-setup.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/unbound/setup/local-unbound-setup.sh b/usr.sbin/unbound/setup/local-unbound-setup.sh
index dc0768a672a6..f725b566b650 100755
--- a/usr.sbin/unbound/setup/local-unbound-setup.sh
+++ b/usr.sbin/unbound/setup/local-unbound-setup.sh
@@ -195,7 +195,7 @@ do_not_edit() {
 gen_resolvconf_conf() {
 	local style="$1"
 	do_not_edit
-	echo "resolv_conf=\"/dev/null\" # prevent updating ${resolv_conf}"
+	echo "libc=\"NO\""
 	if [ "${style}" = "dynamic" ] ; then
 		echo "unbound_conf=\"${forward_conf}\""
 		echo "unbound_pid=\"${pidfile}\""