Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 403786 Details for
Bug 550196
net-dns/djbdns: make default SOA record value as recommend
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
make SOA record default follow RFC1912
soa_rfc1912_recommend_minimum.patch (text/plain), 999 bytes, created by
andcycle-gentoo
on 2015-05-22 21:16:08 UTC
(
hide
)
Description:
make SOA record default follow RFC1912
Filename:
MIME Type:
Creator:
andcycle-gentoo
Created:
2015-05-22 21:16:08 UTC
Size:
999 bytes
patch
obsolete
>diff -Naur djbdns-1.05/tinydns-data.c djbdns-1.05-m/tinydns-data.c >--- djbdns-1.05/tinydns-data.c 2001-02-12 05:11:45.000000000 +0800 >+++ djbdns-1.05-m/tinydns-data.c 2015-05-23 04:56:34.952927710 +0800 >@@ -1,5 +1,6 @@ > #include <stdio.h> > #include <unistd.h> >+#include <time.h> > #include <sys/types.h> > #include <sys/stat.h> > #include "uint16.h" >@@ -114,10 +115,14 @@ > struct stat st; > if (fstat(fd,&st) == -1) > strerr_die2sys(111,FATAL,"unable to stat data: "); >- uint32_pack_big(defaultsoa,st.st_mtime); >- if (byte_equal(defaultsoa,4,"\0\0\0\0")) >- defaultsoa[3] = 1; >- byte_copy(defaultsoa + 4,16,"\0\0\100\000\0\0\010\000\0\020\000\000\0\0\012\000"); >+ char buffer[12]; >+ struct tm lt; >+ unsigned int recommand_ser; >+ localtime_r(&st.st_mtime, <); >+ strftime(buffer, 12, "%Y%m%d01\n", <); >+ recommand_ser = atoi(buffer); >+ uint32_pack_big(defaultsoa,recommand_ser); >+ byte_copy(defaultsoa + 4,16,"\0\0\004\260\0\0\004\260\0\022\165\000\0\0\016\020"); > } > > int fdcdb;
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 550196
:
403786
|
403788
|
403916