projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c44a06
)
fix regression in support for resolv.conf attempts option
author
Rich Felker
<dalias@aerifal.cx>
Fri, 21 Apr 2017 21:34:26 +0000
(17:34 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 21 Apr 2017 21:34:26 +0000
(17:34 -0400)
commit
d6cb08bcaca4ff1f921375510ca72bccea969c75
moved the code and
introduced an incorrect string offset for the new parsing, probably
due to a copy-and-paste error.
patch by Stefan Sedich.
src/network/resolvconf.c
patch
|
blob
|
history
diff --git
a/src/network/resolvconf.c
b/src/network/resolvconf.c
index 2cf1f47542ab50e38a4588dcb973793e4f308e5a..4c3e4c4b1c03c9feaafe831e4b865626a9a4d60d 100644
(file)
--- a/
src/network/resolvconf.c
+++ b/
src/network/resolvconf.c
@@
-45,8
+45,8
@@
int __get_resolv_conf(struct resolvconf *conf, char *search, size_t search_sz)
if (z != p) conf->ndots = x > 15 ? 15 : x;
}
p = strstr(line, "attempts:");
- if (p && isdigit(p[
6
])) {
- p +=
6
;
+ if (p && isdigit(p[
9
])) {
+ p +=
9
;
unsigned long x = strtoul(p, &z, 10);
if (z != p) conf->attempts = x > 10 ? 10 : x;
}