[PATCH v3 21/27] awk: Use bb_system instead of system

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

diff --git a/editors/awk.c b/editors/awk.c
index 64e752f4b..9bc5e5c6b 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -3479,7 +3479,7 @@ static var *evaluate(node *op, var *res)
 			case F_sy:
 				fflush_all();
 				R_d = (ENABLE_FEATURE_ALLOW_EXEC && L.s && *L.s)
-						? (system(L.s) >> 8) : 0;
+						? (bb_system(L.s) >> 8) : 0;
 				break;
 
 			case F_ff:
-- 
2.43.0



More information about the busybox mailing list