Bugfix: Do not free() static string in new runparts directive

This is a bugfix to 785c21d, which introduced the new runparts
directive in finit.conf

- Do not attempt to free() a static string, use same approach as
  username and hostname.

- Do not overwrite hostname, set the correct variable if runparts
  directive is found in finit.conf

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2012-10-08 11:42:19 +02:00
1 parent 7e3465a022
commit 77b0df3d07
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ char *sdown = NULL;
char *network = NULL;
char *username = NULL;
char *hostname = NULL;
char *rcsd = FINIT_RCSD;
char *rcsd = NULL;
static void parse_kernel_cmdline(void)