[PATCH v3 23/27] bootchartd: Use bb_system instead of system

Nadav Tasher tashernadav at gmail.com
Mon Jan 27 00:04:34 UTC 2025


Allows for execution of the internal shell when the
FEATURE_PREFER_APPLETS config option is enabled.

Signed-off-by: Nadav Tasher <tashernadav at gmail.com>
---
 init/bootchartd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init/bootchartd.c b/init/bootchartd.c
index 0833e0fe4..a624ed6e6 100644
--- a/init/bootchartd.c
+++ b/init/bootchartd.c
@@ -315,7 +315,7 @@ static void finalize(char *tempdir, const char *prog, int process_accounting)
 	fclose(header_fp);
 
 	/* Package log files */
-	system(xasprintf("tar -zcf /var/log/bootlog.tgz header %s *.log", process_accounting ? "kernel_pacct" : ""));
+	bb_system(xasprintf("tar -zcf /var/log/bootlog.tgz header %s *.log", process_accounting ? "kernel_pacct" : ""));
 	/* Clean up (if we are not in detached tmpfs) */
 	if (tempdir) {
 		unlink("header");
-- 
2.43.0



More information about the busybox mailing list