summaryrefslogtreecommitdiff
path: root/net/djbdns/patches/patch-ab
blob: 0e13e9742b1f550a5e1273bccc671f6a61eafffb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ab,v 1.1 2000/12/29 16:42:55 hubertf Exp $

--- dnscache-conf.c.orig	Thu Dec 28 16:36:17 2000
+++ dnscache-conf.c	Thu Dec 28 16:38:03 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);