Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166530094
D57926.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
987 B
Referenced Files
None
Subscribers
None
D57926.diff
View Options
diff --git a/lib/libc/resolv/res_init.c b/lib/libc/resolv/res_init.c
--- a/lib/libc/resolv/res_init.c
+++ b/lib/libc/resolv/res_init.c
@@ -746,6 +746,10 @@
#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
--- a/share/man/man5/resolver.5
+++ b/share/man/man5/resolver.5
@@ -206,6 +206,18 @@
.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 .
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Aug 15, 2:34 AM (8 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36697368
Default Alt Text
D57926.diff (987 B)
Attached To
Mode
D57926: libc/resolv: Add no-debug and no-rotate options
Attached
Detach File
Event Timeline
Log In to Comment