[Initng-svn] r1955 - initng/tools
svn at initng.thinktux.net
svn at initng.thinktux.net
Sun Nov 6 18:05:48 CET 2005
Author: SaTaN0r1
Date: Sun Nov 6 18:05:47 2005
New Revision: 1955
Modified:
initng/tools/install_service.c
Log:
now @foo@ transformations are also issued to the OUTPUT of #exec blocks
Modified: initng/tools/install_service.c
==============================================================================
--- initng/tools/install_service.c (original)
+++ initng/tools/install_service.c Sun Nov 6 18:05:47 2005
@@ -281,6 +281,7 @@
const char* distro = NULL;
const char* infile = NULL;
const char* outfile = NULL;
+ const char* data;
#define LINE_LEN 1000
char line[LINE_LEN];
#define EXEC_BUFFER_LEN 100000
@@ -458,7 +459,11 @@
if (MATCH("#endexec", line)) {
D_("found #endexec\n");
/* Do the exec shit*/
- fprintf(out, "%s", do_exec(exec_buffer, strlen(exec_buffer)));
+ data = do_exec(exec_buffer, strlen(exec_buffer));
+ if (data){
+ print_it(out, data);
+ free((void*)data);
+ }
in_block = 0;
continue;
} else {
More information about the Initng-svn
mailing list