OSSP CVS Repository

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

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

--- rc.c 2002/04/11 16:52:45     1.18
+++ rc.c 2002/04/12 19:15:12     1.19
@@ -34,6 +34,10 @@
 #include "rc_const.h"
 #include "rc_private.h"
 
+/* FIXME BEGIN DEBUG */
+#include "rc_config.h"
+#include <string.h>
+/* FIXME END DEBUG */
 
 int main(int argc, char *argv[])
 {
@@ -47,8 +51,8 @@
         procConf(szEnvass, szSecdef, szSecref, szSecparm);
         procParse();
         procSec(szUmask, szUser, szGroup);
-        procEval(szSection1, szSection2, ...);*/
-        configDestruct();
+        procEval(szSection1, szSection2, ...);
+        configDestruct();*/
     }
     ex_catch(Except) {
         if ((int)Except.ex_value == RC_CNF_VRS)
@@ -60,6 +64,29 @@
         exit(1);        /* Failure */
     }
 
-TRACE("No exceptions caught");
+/* FIXME BEGIN DEBUG */
+{
+int i = 0;
+int bCaught = FALSE;
+while (!bCaught) {
+    ex_try {
+        if (configGetval(i)) {
+            fprintf(stderr, "D Option %s: ", configGetname(i));
+            if (!(strcmp(configGetval(i), "1")))
+                fprintf(stderr, "on\n");
+            else
+                fprintf(stderr, "%s\n", configGetval(i));
+        }
+    }
+    ex_catch(Except) {
+        bCaught = TRUE;
+    }
+    i++;
+}
+}
+/* FIXME END DEBUG */
+
+configDestruct();/* FIXME Remove, allow first scope */
+TRACE("No exceptions caught\n");
     exit(0);            /* Success */
 }

CVSTrac 2.0.1