Date: Tue, 21 Jul 2026 08:56:37 +0000 From: Dag-Erling=?utf-8?Q? Sm=C3=B8rg?=rav <des@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 506c2dee1777 - stable/15 - libc/resolv: Add no-debug and no-rotate options Message-ID: <6a5f3445.23101.fbe3e19@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/15 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=506c2dee1777030b1ba5cf63e01d3108bde59c9b commit 506c2dee1777030b1ba5cf63e01d3108bde59c9b Author: Dag-Erling Smørgrav <des@FreeBSD.org> AuthorDate: 2026-07-06 12:23:43 +0000 Commit: Dag-Erling Smørgrav <des@FreeBSD.org> CommitDate: 2026-07-21 08:54:41 +0000 libc/resolv: Add no-debug and no-rotate options These are simply the reverse of the debug and rotate options. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D57926 (cherry picked from commit 60827d7885016861dc02caa45f3ce873ad2a020e) --- 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 120b30fc74f5..a9b2d5c582c8 100644 --- a/lib/libc/resolv/res_init.c +++ b/lib/libc/resolv/res_init.c @@ -746,6 +746,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 749ffba21fbd..3951aa750a96 100644 --- a/share/man/man5/resolver.5 +++ b/share/man/man5/resolver.5 @@ -206,6 +206,18 @@ Set .Dv RES_NOCHECKNAME . This 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 Set .Dv RES_NOTLDQUERY .home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a5f3445.23101.fbe3e19>
