summaryrefslogtreecommitdiff
path: root/dns/djbdns/files/patch-dnscache-conf.c
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-28 18:00:40 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-28 18:00:40 +0000
commit262bfb02a2e561d1f8a923d876dd64a7db6477a0 (patch)
tree0b00c082fa21745e8e9fbfb384b569b5f7b284c3 /dns/djbdns/files/patch-dnscache-conf.c
parentaudio/cmus: update to 2.5.1 (diff)
Rename dns/ patch-xy patches to reflect the files they modify.
Notes
Notes: svn path=/head/; revision=363210
Diffstat (limited to 'dns/djbdns/files/patch-dnscache-conf.c')
-rw-r--r--dns/djbdns/files/patch-dnscache-conf.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/dns/djbdns/files/patch-dnscache-conf.c b/dns/djbdns/files/patch-dnscache-conf.c
new file mode 100644
index 000000000000..4fb1e2a7abb4
--- /dev/null
+++ b/dns/djbdns/files/patch-dnscache-conf.c
@@ -0,0 +1,20 @@
+--- dnscache-conf.orig Sat Sep 23 17:39:21 2000
++++ dnscache-conf.c Sat Sep 23 17:42:43 2000
+@@ -89,13 +89,13 @@
+ if (chdir(auto_home) == -1)
+ strerr_die4sys(111,FATAL,"unable to switch to ",auto_home,": ");
+
+- fdrootservers = open_read("/etc/dnsroots.local");
++ fdrootservers = open_read("etc/dnsroots.local");
+ if (fdrootservers == -1) {
+ if (errno != error_noent)
+- strerr_die2sys(111,FATAL,"unable to open /etc/dnsroots.local: ");
+- fdrootservers = open_read("/etc/dnsroots.global");
++ strerr_die4sys(111,FATAL,"unable to open ",auto_home,"/etc/dnsroots.local: ");
++ fdrootservers = open_read("etc/dnsroots.global");
+ if (fdrootservers == -1)
+- strerr_die2sys(111,FATAL,"unable to open /etc/dnsroots.global: ");
++ strerr_die4sys(111,FATAL,"unable to open ",auto_home,"/etc/dnsroots.global: ");
+ }
+
+ init(dir,FATAL);