summaryrefslogtreecommitdiff
path: root/net/spread/patches/patch-ba
blob: 4733b8fa6ea133cd8f14eef5ae812101f34b0a97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-ba,v 1.2 2004/10/30 11:54:12 recht Exp $

--- auth-ip.c.orig	Fri Oct 29 20:13:28 2004
+++ auth-ip.c	Fri Oct 29 20:17:10 2004
@@ -94,8 +94,8 @@
         if (NULL != (fp = fopen("./spread.access_ip", "r")) )
             Alarmp( SPLOG_INFO, ACM, "ip_init: using file: ./spread.access_ip\n");
     if (fp == NULL)
-        if (NULL != (fp = fopen("/etc/spread.access_ip", "r")) )
-            Alarmp( SPLOG_INFO, ACM, "ip_init: using file: /etc/spread.access_ip\n");
+        if (NULL != (fp = fopen(SPREAD_ETCDIR "/spread.access_ip", "r")) )
+            Alarmp( SPLOG_INFO, ACM, "ip_init: using file: " SPREAD_ETCDIR "/spread.access_ip\n");
     if (fp == NULL)
     {
         Alarmp( SPLOG_ERROR, ACM, "ip_init: IP access control file not found.\nIf you are using IP based access controls, please make sure the file exists.\n");