/[smeserver]/rpms/djbdns/sme10/120-compiler-temporary-filename.patch
ViewVC logotype

Contents of /rpms/djbdns/sme10/120-compiler-temporary-filename.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Jul 12 03:39:09 2017 UTC (7 years, 3 months ago) by unnilennium
Branch: MAIN
CVS Tags: djbdns-1_05-10_el7_sme, djbdns-1_05-9_el7_sme, djbdns-1_05-11_el7_sme, HEAD
Error occurred while calculating annotation data.
* Tue Jul 11 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.05-9.sme
--import patches from openwrt and rename already applied patches
--fix security issues [SME: 10374]
- 020-dnsroots-update.patch: update list of root DNS servers
- 070-dnscache-dpos-tcp-servfail.patch: SERVFAIL rename previous patch dns_transmit-bug.patch
- 080-dnscache-cache-negatives.patch: rfc2308 ?
- 210-dnscache-strict-forwardonly.patch: rename previous patch dnscache-strict-forwardonly.patch
- 240-tinydns-alias-chain-truncation.patch: rename previous patch tinydns-alias-chain-truncation.patch
- 270-dnscache-sigpipe-fix.patch: SIGPIPE
- 300-bugfix-dnscache-dempsky-poison.patch: CVE-2009-0858
- 310-bugfix-dnscache-merge-outgoing-requests.patch: CVE-2008-4392
- 320-bugfix-dnscache-cache-soa-records.patch: CVE-2008-4392
- 450-dnscache-ghost-domain-CVE-2012-1191.patch: CVE-2012-1191 http://marc.info/?l=djbdns&m=134190748729079&w=2
--bug fixes [SME: 10374]
- 060-dnscache-big-udp-packets.patch: accept and handle longer than 512 bytes UDP packets
- 230-tinydns-data-semantic-error.patch: handle semantic error to avoid publishing false dns records
--fix issue with short ttl cname like akamaid [SME: 8362]
- 200-dnscache-cname-handling.patch: rename previous patch dnscache-cname-handling.patch
- 330-fix-dnscache-cname-handling.patch: fix dnscache cname for short ttl
- 500-cutom-dnscache-maxloop.patch: set max loop to 200
--needed for previous patches to apply cleanly
- 030-srv-records-and-axfrget.patch: add SRV record type and axfr-get decompose SRC and PTR records (for 230-*.patch)
- 050-tinydns-mmap-leak.patch: report cdb leak
- 080-dnscache-cache-negatives.patch: rfc2308 ?
- 090-tinydns-one-second.patch: improve tinydns with 8 or more  concurent connections (for 240-*.patch)
- 120-compiler-temporary-filename.patch: change tmp filename to avoid conflicts (for 230-*.patch)

1 --- a/pickdns-data.c
2 +++ b/pickdns-data.c
3 @@ -123,7 +123,7 @@ void syntaxerror(const char *why)
4 }
5 void die_datatmp(void)
6 {
7 - strerr_die2sys(111,FATAL,"unable to create data.tmp: ");
8 + strerr_die2sys(111,FATAL,"unable to create data.cdb.tmp: ");
9 }
10
11 int main()
12 @@ -142,7 +142,7 @@ int main()
13 if (fd == -1) strerr_die2sys(111,FATAL,"unable to open data: ");
14 buffer_init(&b,buffer_unixread,fd,bspace,sizeof bspace);
15
16 - fdcdb = open_trunc("data.tmp");
17 + fdcdb = open_trunc("data.cdb.tmp");
18 if (fdcdb == -1) die_datatmp();
19 if (cdb_make_start(&cdb,fdcdb) == -1) die_datatmp();
20
21 @@ -223,8 +223,8 @@ int main()
22 if (cdb_make_finish(&cdb) == -1) die_datatmp();
23 if (fsync(fdcdb) == -1) die_datatmp();
24 if (close(fdcdb) == -1) die_datatmp(); /* NFS stupidity */
25 - if (rename("data.tmp","data.cdb") == -1)
26 - strerr_die2sys(111,FATAL,"unable to move data.tmp to data.cdb: ");
27 + if (rename("data.cdb.tmp","data.cdb") == -1)
28 + strerr_die2sys(111,FATAL,"unable to move data.cdb.tmp to data.cdb: ");
29
30 _exit(0);
31 }
32 --- a/rbldns-data.c
33 +++ b/rbldns-data.c
34 @@ -42,7 +42,7 @@ void syntaxerror(const char *why)
35 }
36 void die_datatmp(void)
37 {
38 - strerr_die2sys(111,FATAL,"unable to create data.tmp: ");
39 + strerr_die2sys(111,FATAL,"unable to create data.cdb.tmp: ");
40 }
41
42 int main()
43 @@ -59,7 +59,7 @@ int main()
44 if (fd == -1) strerr_die2sys(111,FATAL,"unable to open data: ");
45 buffer_init(&b,buffer_unixread,fd,bspace,sizeof bspace);
46
47 - fdcdb = open_trunc("data.tmp");
48 + fdcdb = open_trunc("data.cdb.tmp");
49 if (fdcdb == -1) die_datatmp();
50 if (cdb_make_start(&cdb,fdcdb) == -1) die_datatmp();
51
52 @@ -121,8 +121,8 @@ int main()
53 if (cdb_make_finish(&cdb) == -1) die_datatmp();
54 if (fsync(fdcdb) == -1) die_datatmp();
55 if (close(fdcdb) == -1) die_datatmp(); /* NFS stupidity */
56 - if (rename("data.tmp","data.cdb") == -1)
57 - strerr_die2sys(111,FATAL,"unable to move data.tmp to data.cdb: ");
58 + if (rename("data.cdb.tmp","data.cdb") == -1)
59 + strerr_die2sys(111,FATAL,"unable to move data.cdb.tmp to data.cdb: ");
60
61 _exit(0);
62 }
63 --- a/tinydns-data.c
64 +++ b/tinydns-data.c
65 @@ -27,7 +27,7 @@
66
67 void die_datatmp(void)
68 {
69 - strerr_die2sys(111,FATAL,"unable to create data.tmp: ");
70 + strerr_die2sys(111,FATAL,"unable to create data.cdb.tmp: ");
71 }
72 void nomem(void)
73 {
74 @@ -207,7 +207,7 @@ int main()
75
76 buffer_init(&b,buffer_unixread,fddata,bspace,sizeof bspace);
77
78 - fdcdb = open_trunc("data.tmp");
79 + fdcdb = open_trunc("data.cdb.tmp");
80 if (fdcdb == -1) die_datatmp();
81 if (cdb_make_start(&cdb,fdcdb) == -1) die_datatmp();
82
83 @@ -487,8 +487,8 @@ int main()
84 if (cdb_make_finish(&cdb) == -1) die_datatmp();
85 if (fsync(fdcdb) == -1) die_datatmp();
86 if (close(fdcdb) == -1) die_datatmp(); /* NFS stupidity */
87 - if (rename("data.tmp","data.cdb") == -1)
88 - strerr_die2sys(111,FATAL,"unable to move data.tmp to data.cdb: ");
89 + if (rename("data.cdb.tmp","data.cdb") == -1)
90 + strerr_die2sys(111,FATAL,"unable to move data.cdb.tmp to data.cdb: ");
91
92 _exit(0);
93 }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed