From nobody Mon Jun 29 15:52:09 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gprPk3tqJz6jNn6 for ; Mon, 29 Jun 2026 15:52:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gprPk0F3Fz3Ksc for ; Mon, 29 Jun 2026 15:52:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782748330; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=opGvNHOh4mgp7BzRXv/SV7wu3IK5A1K4FfVC/qvHrDA=; b=WyLZhs3fwZqlrLbhBIDxZiJ4+MvBldcjNGlr+l4gf+G7gyT2KVVm1erbxbihu52eWAW4RS puk9Yj0mpJ+kDhVVeePbPQDDUSoJcp41ThbqP9NtUPgK0CuN+OYf6hd5hT8qW5YUoEA5g0 uijtirUOu6FlLYFVksPWKZaFsaq/VxnDJ4wUsOpdxPPGGx5hmwN55gCBV59JMcPoRWyG6b Wy2SH2YDwvhnJylE0Bhh1uPqq5Ca8bMMXk05XB9kMPfM1NmY6DDz8gzCoA8wq5MEHAmtkA +JY3HGSvBEopUbAbYWizBicOX04L+Qj2e4MKFVBecWoZziXLkARG2JC/tomUdQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782748330; a=rsa-sha256; cv=none; b=u56TarIV25QOTYn3mI/X8NEH6ZKNTmdoSwag0+Y2s/QmEY6m7M+n2d28RWkELTACo2MJPA RizOF9+3+MKB5ij7CWmDa/Mtere4sENmKsAZ8+keHQ0KRDpnqdZa5UxUpm7Yrw6zZ4HphY +x4cZnzr/CKol+QayaoZeJsssiZLbfxshmkFi/VUMkAbuYys92AQ7PDsmd6O4/CDVTFpWs yr3Ob27hXUj4ENra/m4SanuGJG3pLEDhUSc2aULe4qrP6mfQT/tQBVxhtYbhui+I7ATBpK P460135L6duIYJ0t2uTBtdhF4IsgKYwE+ieSsGHCRgUfB4zOKMFB8Qpxkc6C6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782748330; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=opGvNHOh4mgp7BzRXv/SV7wu3IK5A1K4FfVC/qvHrDA=; b=xxtwdXqgnrVVoiJjyc7sp33gBVjbnu08UrWUH32CLYpCA8G8ScYPTHlBEyIitzh88zqSTj 6+9txD3JEArfyLaahzO3D8/hg8xzYw7NTQTzQLSgN4hTnx9GS36u9Zc5WXVasjzM66jXZ9 nEuWbfYTJehI4yRvMwqlqJvFaM5fSRb24jnaSncvFGDgfDTgOix94pRKVuCuHFDIhTv43L qRy4e12cx4gWpyCO9sD4wHXTBhjWT07he5ESa8MDEbaZ3dWl5ncKBFDl174CfoGkN7tKBC fGtZyauRC+arMMqzVmltwsYm8R/RAc8JgjLr7dlF5//u6S5CMRvTlCjFsytuZg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gprPj6DtXz13g5 for ; Mon, 29 Jun 2026 15:52:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3b992 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Jun 2026 15:52:09 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dag-Erling=?utf-8?Q? Sm=C3=B8rg?=rav Subject: git: 61697e9cd5cc - main - libc/resolv: Add no-debug and no-rotate options List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 61697e9cd5cccc367a38f9851efebad4d7c2bb65 Auto-Submitted: auto-generated Date: Mon, 29 Jun 2026 15:52:09 +0000 Message-Id: <6a4294a9.3b992.27100ff1@gitrepo.freebsd.org> The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=61697e9cd5cccc367a38f9851efebad4d7c2bb65 commit 61697e9cd5cccc367a38f9851efebad4d7c2bb65 Author: Dag-Erling Smørgrav AuthorDate: 2026-06-27 19:00:52 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2026-06-29 13:49:19 +0000 libc/resolv: Add no-debug and no-rotate options These are simply the reverse of the debug and rotate options. --- lib/libc/resolv/res_init.c | 4 ++++ share/man/man5/resolver.5 | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/lib/libc/resolv/res_init.c b/lib/libc/resolv/res_init.c index a0cd381d0f0f..c7eda833f3d5 100644 --- a/lib/libc/resolv/res_init.c +++ b/lib/libc/resolv/res_init.c @@ -752,6 +752,10 @@ res_setoptions(res_state statp, const char *options, const char *source) #ifdef DEBUG printf(";;\tdebug\n"); #endif + } else if (res_match(cp, ep, "no-debug")) { + statp->options &= ~RES_DEBUG; + } else if (res_match(cp, ep, "no-rotate")) { + statp->options &= ~RES_ROTATE; } else if (res_match(cp, ep, "no-tld-query") || res_match(cp, ep, "no_tld_query")) { statp->options |= RES_NOTLDQUERY; diff --git a/share/man/man5/resolver.5 b/share/man/man5/resolver.5 index 135e56287b5f..690d8b10d4e2 100644 --- a/share/man/man5/resolver.5 +++ b/share/man/man5/resolver.5 @@ -203,6 +203,18 @@ Sets .Dv RES_NOCHECKNAME . Disables the check of incoming host names for invalid characters such as underscore, non-ASCII, or control characters. +.It Cm no-debug +Clears +.Dv RES_DEBUG . +See +.Cm debug +above. +.It Cm no-rotate +Clears +.Dv RES_ROTATE . +See +.Cm rotate +below. .It Cm no-tld-query tells the resolver not to attempt to resolve a top level domain name, that is, a name that contains no dots.