OSSP CVS Repository

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

ossp-pkg/rc/rc_proc.c 1.41 -> 1.42

--- rc_proc.c    2003/06/03 15:26:52     1.41
+++ rc_proc.c    2003/06/11 16:18:48     1.42
@@ -232,6 +232,16 @@
                 sizeof(rc_section_t *), priCompare);
             nTmp = 0;
             while (nTmp < pRc->m_pAnal->m_nRcs && ppSectmp[nTmp]) {
+                if (configGetval(RC_VRB_VAL)) {
+                    size_t nBytes = 0;
+                    char *szVerbose = NULL;
+                    szTmp = (char *)sectionGetname(ppSectmp[nTmp]);
+                    nBytes = (strlen(RC_EVN_TEXT) + strlen(szTmp) + 1) * sizeof (char);
+                    szVerbose = malloc (nBytes);
+                    sprintf(szVerbose, RC_EVN_TEXT, szTmp, szTmp);
+                    scriptAppend(pFatscript, szVerbose, strlen(szVerbose));
+                    free(szVerbose);
+                }
                 if ((szTmp = (char *)sectionGetlogin(ppSectmp[nTmp])) != NULL) {
                     scriptAppend(pFatscript, "#su ", strlen("#su "));
                     scriptAppend(pFatscript, szTmp, strlen(szTmp));

CVSTrac 2.0.1