Files
pkgsrc-ng/net/spread/patches/patch-ba
2013-09-26 17:14:40 +02:00

16 lines
845 B
Plaintext

$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");