ossp-pkg/rc/rc_proc.c 1.46 -> 1.47
--- rc_proc.c 2003/06/18 14:35:29 1.46
+++ rc_proc.c 2003/06/23 11:27:53 1.47
@@ -311,7 +311,14 @@
mktemp(szTmpfile);
strcat(szTmpfile, RC_EVL_SUF);
scriptWrite(pFatscript, szTmpfile); /* Write the whole script out */
- fprintf(stdout, RC_EVL_OUT, szTmpfile, szTmpfile);
+
+ /* Conditionally don't remove the temp file (see constants) */
+ if (configGetval(RC_DBG_VAL))
+ fprintf(stdout, RC_EVL_DBG, szTmpfile);
+ else
+ fprintf(stdout, RC_EVL_OUT, szTmpfile, szTmpfile);
+
+ /* Cleanup eval processing crap */
free(szTmpfile);
szTmpfile = NULL;
scriptDelete(pFatscript);
|
|