[Bug 220610] Expose _PATH_RESCONF as __res_conf_name for improved determinism of lib/libc/resolv

[email protected]
Newsgroups gmane.os.freebsd.bugs
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220610

--- Comment #3 from [email protected] ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=702c24ccc0c208e9bc697e775abe47ff723e3012

commit 702c24ccc0c208e9bc697e775abe47ff723e3012
Author:     Dag-Erling Smørgrav <[email protected]>
AuthorDate: 2026-06-28 09:37:40 +0000
Commit:     Dag-Erling Smørgrav <[email protected]>
CommitDate: 2026-06-29 13:49:20 +0000

    libc/resolv: Export __res_conf_name

    Add a new global variable, __res_conf_name, which is initialized to
    _PATH_RESCONF and used in its place by res_init().  This allows test
    programs (and applications) to select a different configuration file
    to read instead of /etc/resolv.conf.

    PR:             220610

 lib/libc/resolv/Symbol.map | 4 ++++
 lib/libc/resolv/res_init.c | 5 ++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.