OSSP CVS Repository

ossp - Check-in [316]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 316
Date: 2001-Jan-19 14:20:34 (local)
2001-Jan-19 13:20:34 (UTC)
User:simons
Branch:
Comment: Mailing list config files may now have the suffix ".config" or ".conf". Similarly, if the list config file is in a separate directory, it may be called <listname>/config or <listname>/conf.
Tickets:
Inspections:
Files:
ossp-pkg/petidomo/tool.c      1.5 -> 1.6     13 inserted, 3 deleted

ossp-pkg/petidomo/tool.c 1.5 -> 1.6

--- tool.c       2001/01/18 20:30:50     1.5
+++ tool.c       2001/01/19 13:20:34     1.6
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/tool.c,v $
-   $Revision: 1.5 $
+   $Revision: 1.6 $
 
    Copyright (C) 2000 by CyberSolutions GmbH, Germany.
 
@@ -143,11 +143,21 @@
     if (stat(buffer, &sb) != 0)
         {
         free(buffer);
-        buffer = text_easy_sprintf("%s/%s.config", MasterConfig->list_dir, listname);
+        buffer = text_easy_sprintf("%s/%s/conf", MasterConfig->list_dir, listname);
         if (stat(buffer, &sb) != 0)
             {
             free(buffer);
-            return FALSE;
+            buffer = text_easy_sprintf("%s/%s.config", MasterConfig->list_dir, listname);
+            if (stat(buffer, &sb) != 0)
+                {
+                free(buffer);
+                buffer = text_easy_sprintf("%s/%s.conf", MasterConfig->list_dir, listname);
+                if (stat(buffer, &sb) != 0)
+                    {
+                    free(buffer);
+                    return FALSE;
+                    }
+                }
             }
         }
     free(buffer);

CVSTrac 2.0.1