[PATCH v3 22/27] vi: Use bb_system instead of system

Nadav Tasher tashernadav at gmail.com
Mon Jan 27 00:04:33 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>
---
 editors/vi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/editors/vi.c b/editors/vi.c
index 34932f60c..e27b1604f 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -2956,7 +2956,7 @@ static void colon(char *buf)
 			goto ret;
 		go_bottom_and_clear_to_eol();
 		cookmode();
-		retcode = system(exp);	// run the cmd
+		retcode = bb_system(exp);	// run the cmd
 		if (retcode)
 			printf("\nshell returned %i\n\n", retcode);
 		rawmode();
-- 
2.43.0



More information about the busybox mailing list