OSSP CVS Repository

ossp - Difference in ossp-pkg/petidomo/acl.y versions 1.3 and 1.4
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/petidomo/acl.y 1.3 -> 1.4

--- acl.y        2000/12/15 15:48:00     1.3
+++ acl.y        2001/01/08 20:36:19     1.4
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/acl.y,v $
-   $Revision: 1.3 $
+   $Revision: 1.4 $
 
    Copyright (C) 2000 by CyberSolutions GmbH, Germany.
 
@@ -236,6 +236,7 @@
              int *           operation_ptr,
              char **         parameter_ptr)
 {
+    const struct PD_Config * MasterConfig;
     char *  filename;
     int     rc;
 
@@ -243,6 +244,7 @@
     assert(operation_ptr != NULL);
     assert(parameter_ptr != NULL);
 
+    MasterConfig = getMasterConfig();
     g_MailStruct = MailStruct;
     g_parameter = NULL;
 
@@ -253,14 +255,14 @@
 
     /* First check the mail against the master acl file. */
 
-    yyin = fopen("etc/acl", "r");
+    yyin = fopen(MasterConfig->acl_file, "r");
     if (yyin == NULL) {
         switch(errno) {
           case ENOENT:
               /* no master acl file */
               goto check_local_acl_file;
           default:
-              syslog(LOG_ERR, "Couldn't open \"~petidomo/etc/acl\" acl file.: %m");
+              syslog(LOG_ERR, "Couldn't open \"%s\" acl file.: %m", MasterConfig->acl_file);
               return -1;
         }
     }
@@ -273,7 +275,7 @@
         yyin = NULL;
     }
     if (rc != 0) {
-        syslog(LOG_ERR, "Parsing \"~petidomo/etc/acl\" file returned with an error.");
+        syslog(LOG_ERR, "Parsing \"%s\" file returned with an error.", MasterConfig->acl_file);
         return -1;
     }
 

CVSTrac 2.0.1