[PATCH v2 25/27] slattach: Use bb_system instead of system
Nadav Tasher
tashernadav at gmail.com
Tue Jan 21 22:35:04 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>
---
networking/slattach.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/networking/slattach.c b/networking/slattach.c
index 2f5cd15ab..2a37ee5de 100644
--- a/networking/slattach.c
+++ b/networking/slattach.c
@@ -222,7 +222,7 @@ int slattach_main(int argc UNUSED_PARAM, char **argv)
/* Execute command on hangup */
if (opt & OPT_c_extcmd)
- system(extcmd);
+ bb_system(extcmd);
/* Restore states and exit */
restore_state_and_exit(EXIT_SUCCESS);
--
2.43.0
More information about the busybox
mailing list