Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 309877 Details for
Bug 413307
net-dns/sheerdns - default responses
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
default responses zone for sheerdns
sheerdns-allow_return_defaults.patch (text/plain), 797 bytes, created by
Krzysztof Taraszka
on 2012-04-23 21:09:54 UTC
(
hide
)
Description:
default responses zone for sheerdns
Filename:
MIME Type:
Creator:
Krzysztof Taraszka
Created:
2012-04-23 21:09:54 UTC
Size:
797 bytes
patch
obsolete
>--- dir.c.orig 2005-02-10 21:14:29.000000000 +0100 >+++ dir.c 2012-04-23 21:33:51.000000000 +0200 >@@ -44,10 +44,17 @@ > if (qtype < 1 || qtype > 41) > return 1; > s = (unsigned char *) try_reverse_in_arpa ((char *) s); >- if (*s) >- snprintf (buf, len, SHEERDNS_DIR "/%s/%s/%s", hex_hash (s), s, qtype_name[qtype]); >- else >+ char str[1024]; >+ int fd = -1; >+ sprintf(str, "%s/%s/%s/%s", SHEERDNS_DIR, hex_hash (s), s, qtype_name[qtype]); >+ if (*s) { >+ if ( (fd = open(str, O_RDONLY)) != -1 ) >+ snprintf (buf, len, SHEERDNS_DIR "/%s/%s/%s", hex_hash (s), s, qtype_name[qtype]); >+ else >+ snprintf (buf, len, SHEERDNS_DIR "/default/%s", qtype_name[qtype]); >+ } else { > snprintf (buf, len, SHEERDNS_DIR "/%s", qtype_name[qtype]); >+ }; > free (s); > return 0; } >
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 413307
: 309877