Lines 1-17
Link Here
|
1 |
--- auth-pword.c Sun Sep 22 12:56:52 2002 |
1 |
--- auth-pword.c Fri Mar 5 11:32:46 2004 |
2 |
+++ auth-pword.c Tue Aug 5 21:28:50 2003 |
2 |
+++ auth-pword.c Thu Jul 15 21:40:16 2004 |
3 |
@@ -118,12 +118,9 @@ |
3 |
@@ -118,12 +118,9 @@ |
4 |
/* load spread.access_ip file */ |
4 |
/* load spread.access_ip file */ |
5 |
if (NULL != (fp = fopen(file_name,"r")) ) |
5 |
if (NULL != (fp = fopen(file_name,"r")) ) |
6 |
Alarm( PRINT, "pword_init: using file: %s\n", file_name); |
6 |
Alarmp( SPLOG_INFO, ACM, "pword_init: using file: %s\n", file_name); |
7 |
- if (fp == NULL) |
7 |
- if (fp == NULL) |
8 |
- if (NULL != (fp = fopen("./spread.access_pword", "r")) ) |
8 |
- if (NULL != (fp = fopen("./spread.access_pword", "r")) ) |
9 |
- Alarm( PRINT, "pword_init: using file: ./spread.access_pword\n"); |
9 |
- Alarmp( SPLOG_INFO,ACM, "pword_init: using file: ./spread.access_pword\n"); |
10 |
if (fp == NULL) |
10 |
if (fp == NULL) |
11 |
- if (NULL != (fp = fopen("/etc/spread.access_pword", "r")) ) |
11 |
- if (NULL != (fp = fopen("/etc/spread.access_pword", "r")) ) |
12 |
- Alarm( PRINT, "pword_init: using file: /etc/spread.access_pword\n"); |
12 |
- Alarmp( SPLOG_INFO, ACM, "pword_init: using file: /etc/spread.access_pword\n"); |
13 |
+ if (NULL != (fp = fopen(SPREAD_ETCDIR "/spread.access_pword", "r")) ) |
13 |
+ if (NULL != (fp = fopen(SPREAD_ETCDIR "/spread.access_pword", "r")) ) |
14 |
+ Alarm( PRINT, "pword_init: using file: " SPREAD_ETCDIR "/spread.access_pword\n"); |
14 |
+ Alarmp( SPLOG_INFO, ACM, "pword_init: using file: " SPREAD_ETCDIR "/spread.access_pword\n"); |
15 |
if (fp == NULL) |
15 |
if (fp == NULL) |
16 |
Alarm( EXIT, "pword_init: error opening config file %s in any of the standard locations. Please make sure the file exists\n", file_name); |
16 |
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); |
17 |
|
17 |
|