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;
|
|