OSSP CVS Repository

ossp - Difference in ossp-pkg/petidomo/config.c versions 1.7 and 1.8
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/petidomo/config.c 1.7 -> 1.8

--- config.c     2001/01/06 14:12:21     1.7
+++ config.c     2001/01/08 15:55:07     1.8
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/Attic/config.c,v $
-   $Revision: 1.7 $
+   $Revision: 1.8 $
 
    Copyright (C) 2000 by CyberSolutions GmbH, Germany.
 
@@ -36,7 +36,7 @@
 static char*  mta             = "/usr/sbin/sendmail";
 static char*  mta_options     = "-i -f%s";
 
-int InitPetidomo(void)
+int InitPetidomo(const char* masterconfig_path)
     {
     int    rc;
 
@@ -66,7 +66,7 @@
 
     /* Parse the config file. */
 
-    rc = ReadConfig(ETCDIR "/petidomo.conf", MasterCF);
+    rc = ReadConfig(masterconfig_path, MasterCF);
     if (rc != 0)
         {
         syslog(LOG_ERR, "Failed to parse the master config file.");
@@ -77,12 +77,12 @@
 
     if (fqdn == NULL)
         {
-        syslog(LOG_ERR, "The master config file \"petidomo.conf\" doesn't set the host name.");
+        syslog(LOG_ERR, "The master config file \"%s\" doesn't set the host name.", masterconfig_path);
         return -1;
         }
     if (master_password == NULL)
         {
-        syslog(LOG_ERR, "The master config file \"petidomo.conf\" doesn't set the admin password.");
+        syslog(LOG_ERR, "The master config file \"%s\" doesn't set the admin password.", masterconfig_path);
         return -1;
         }
     if (strstr(mta_options, "%s") == NULL)

CVSTrac 2.0.1