[Frugalware-darcs] setup-current: util: new function: fw_system

VMiklos vmiklos at frugalware.org
Thu Mar 16 18:07:13 CET 2006


[util: new function: fw_system
VMiklos <vmiklos at frugalware.org>**20051111171612
 runs a command
 redirects the output of the command to LOGDEV
 don't really runs #ifndef FINAL
] {
hunk ./src/util.c 143
+int fw_system(char* cmd)
+{
+#ifdef FINAL
+	return(system(g_strdup_printf("%s >%s", cmd, LOGDEV)));
+#else
+	return(system(g_strdup_printf("echo %s >%s", cmd, LOGDEV)));
+#endif
+}
+
hunk ./src/util.h 42
+int fw_system(char* cmd);
}


More information about the Frugalware-darcs mailing list