OSSP CVS Repository

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

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

--- acl.y        2001/01/08 20:36:19     1.4
+++ acl.y        2001/01/08 20:49:52     1.5
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/acl.y,v $
-   $Revision: 1.4 $
+   $Revision: 1.5 $
 
    Copyright (C) 2000 by CyberSolutions GmbH, Germany.
 
@@ -237,7 +237,7 @@
              char **         parameter_ptr)
 {
     const struct PD_Config * MasterConfig;
-    char *  filename;
+    const struct List_Config * ListConfig;
     int     rc;
 
     assert(MailStruct != NULL);
@@ -245,6 +245,7 @@
     assert(parameter_ptr != NULL);
 
     MasterConfig = getMasterConfig();
+    ListConfig = getListConfig(listname);
     g_MailStruct = MailStruct;
     g_parameter = NULL;
 
@@ -298,15 +299,14 @@
     if (listname == NULL)
       goto finished;
 
-    filename = text_easy_sprintf("lists/%s/acl", listname);
-    yyin = fopen(filename, "r");
+    yyin = fopen(ListConfig->acl_file, "r");
     if (yyin == NULL) {
         switch(errno) {
           case ENOENT:
               /* no list acl file */
               goto finished;
           default:
-              syslog(LOG_ERR, "Couldn't open \"~petidomo/%s\" file: %m", filename);
+              syslog(LOG_ERR, "Couldn't open acl file \"%s\": %m", ListConfig->acl_file);
               return -1;
         }
     }

CVSTrac 2.0.1