OSSP CVS Repository

ossp - Difference in ossp-pkg/rc/rc.c versions 1.17 and 1.18
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/rc/rc.c 1.17 -> 1.18

--- rc.c 2002/03/26 17:11:06     1.17
+++ rc.c 2002/04/11 16:52:45     1.18
@@ -30,36 +30,36 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-#include <string.h>
-
 #include "rc.h"
+#include "rc_const.h"
 #include "rc_private.h"
 
 
-/*TRACE("Vor configLoad.");
-TRACEL((long)configGetvers());
-TRACE("Nach configLoad.");
-TRACEL((long)configGetvers());*/
-
 int main(int argc, char *argv[])
 {
     ex_t Except;
-    int bCaught = 0;
 
     ex_try {
         configConstruct();
         configLoad(argc, argv);
+        /* Processing the runcommands */
+/*        procOpen(szRcfilist, szFuncfilist, szTmpfile);
+        procConf(szEnvass, szSecdef, szSecref, szSecparm);
+        procParse();
+        procSec(szUmask, szUser, szGroup);
+        procEval(szSection1, szSection2, ...);*/
+        configDestruct();
     }
     ex_catch(Except) {
-        bCaught = 1;
+        if ((int)Except.ex_value == RC_CNF_VRS)
+            fprintf(stdout, "This is OSSP rc, version %s\n", RC_VERSION);
+            
         fprintf(stderr, "Class '%s' threw exception %d in %s:%s():%d.\n",\
                (char *)Except.ex_class, (int)Except.ex_value,\
                Except.ex_file, Except.ex_func, Except.ex_line);
         exit(1);        /* Failure */
     }
-    if (!bCaught)
-        fprintf(stderr, "main: No exceptions caught.\n");
 
-    configDestruct();   /* Possibly destruct the configuration */
+TRACE("No exceptions caught");
     exit(0);            /* Success */
 }

CVSTrac 2.0.1