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

--- auth-pword.c.orig	Fri Oct 29 20:14:58 2004
+++ auth-pword.c	Fri Oct 29 20:15:57 2004
@@ -122,8 +122,8 @@
         if (NULL != (fp = fopen("./spread.access_pword", "r")) )
             Alarmp( SPLOG_INFO,ACM, "pword_init: using file: ./spread.access_pword\n");
     if (fp == NULL)
-        if (NULL != (fp = fopen("/etc/spread.access_pword", "r")) )
-            Alarmp( SPLOG_INFO, ACM, "pword_init: using file: /etc/spread.access_pword\n");
+        if (NULL != (fp = fopen(SPREAD_ETCDIR "/spread.access_pword", "r")) )
+            Alarmp( SPLOG_INFO, ACM, "pword_init: using file: " SPREAD_ETCDIR "/spread.access_pword\n");
     if (fp == NULL)
         Alarmp( SPLOG_FATAL, ACM, "pword_init: error opening config file %s in any of the standard locations. Please make sure the file exists\n", file_name);