OSSP CVS Repository

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

Check-in Number: 3403
Date: 2003-May-28 20:58:16 (local)
2003-May-28 18:58:16 (UTC)
User:ms
Branch:
Comment: Fix info option.
Tickets:
Inspections:
Files:
ossp-pkg/rc/rc_config.c      1.30 -> 1.31     5 inserted, 4 deleted

ossp-pkg/rc/rc_config.c 1.30 -> 1.31

--- rc_config.c  2003/05/27 11:53:12     1.30
+++ rc_config.c  2003/05/28 18:58:16     1.31
@@ -200,6 +200,11 @@
         clioptParseargs();                  /* Command line args */
 /*        envoptParse(m_nLocks->pOpt);*/    /* Environment options   */
 /*        cnfoptParse(m_nLocks->pOpt);*/    /* Configfile options    */
+
+        /* Test if information is asked of the operating environment */
+        if (configGetval(RC_INF_VAL)) { /* These lines must come after */
+            configInfo();               /* option parsing is finished! */
+        }
     }
     catch(Except)
         rethrow;
@@ -260,10 +265,6 @@
             fprintf(stdout, "OSSP rc %s\n", RC_VERSION);
             bStop = TRUE;
         }
-        else if (configGetval(RC_INF_VAL)) {
-            configInfo();
-            bStop = TRUE;
-        }
     }
     catch(Except)
         rethrow;

CVSTrac 2.0.1