Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 159925 Details for
Bug 231247
net-dns/bind-tools-9.5.0: lwconfig is a bit too greedy when parsing /etc/resolv.conf
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
the patch mentioned in the first comment
lwconfig.diff (text/plain), 1.81 KB, created by
Martin Walch
on 2008-07-09 00:41:58 UTC
(
hide
)
Description:
the patch mentioned in the first comment
Filename:
MIME Type:
Creator:
Martin Walch
Created:
2008-07-09 00:41:58 UTC
Size:
1.81 KB
patch
obsolete
>--- lib/lwres/lwconfig.c.old 2007-06-20 01:47:22.000000000 +0200 >+++ lib/lwres/lwconfig.c 2008-06-15 02:57:02.000000000 +0200 >@@ -175,13 +175,8 @@ > REQUIRE(buffer != NULL); > REQUIRE(size > 0U); > >- *p = '\0'; >- > ch = eatwhite(fp); > >- if (ch == EOF) >- return (EOF); >- > do { > *p = '\0'; > >@@ -592,23 +587,37 @@ > if (strlen(word) == 0U) > rval = LWRES_R_SUCCESS; > else if (strcmp(word, "nameserver") == 0) >- rval = lwres_conf_parsenameserver(ctx, fp); >+ rval = (stopchar != '\n')? /* fail instantly if EOL is reached */ >+ lwres_conf_parsenameserver(ctx, fp) >+ : LWRES_R_FAILURE; > else if (strcmp(word, "lwserver") == 0) >- rval = lwres_conf_parselwserver(ctx, fp); >+ rval = (stopchar != '\n')? >+ lwres_conf_parselwserver(ctx, fp) >+ : LWRES_R_FAILURE; > else if (strcmp(word, "domain") == 0) >- rval = lwres_conf_parsedomain(ctx, fp); >+ rval = (stopchar != '\n')? >+ lwres_conf_parsedomain(ctx, fp) >+ : LWRES_R_FAILURE; > else if (strcmp(word, "search") == 0) >- rval = lwres_conf_parsesearch(ctx, fp); >+ rval = (stopchar != '\n')? >+ lwres_conf_parsesearch(ctx, fp) >+ : LWRES_R_FAILURE; > else if (strcmp(word, "sortlist") == 0) >- rval = lwres_conf_parsesortlist(ctx, fp); >+ rval = (stopchar != '\n')? >+ lwres_conf_parsesortlist(ctx, fp) >+ : LWRES_R_FAILURE; > else if (strcmp(word, "options") == 0) >- rval = lwres_conf_parseoption(ctx, fp); >+ rval = (stopchar != '\n')? >+ lwres_conf_parseoption(ctx, fp) >+ : LWRES_R_FAILURE; > else { > /* unrecognised word. Ignore entire line */ > rval = LWRES_R_SUCCESS; >- stopchar = eatline(fp); >- if (stopchar == EOF) { >- break; >+ if (stopchar != '\n') { /* do not eat the next line */ >+ stopchar = eatline(fp); >+ if (stopchar == EOF) { >+ break; >+ } > } > } > if (ret == LWRES_R_SUCCESS && rval != LWRES_R_SUCCESS)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 231247
: 159925