This commit utilizes the new updates to get_shell_name() which
makes it more dependable in FEATURE_PREFER_APPLETS configurations.

Signed-off-by: Nadav Tasher <[email protected]>
---
 libbb/vfork_daemon_rexec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c
index 9587f2716..e46536043 100644
--- a/libbb/vfork_daemon_rexec.c
+++ b/libbb/vfork_daemon_rexec.c
@@ -262,7 +262,7 @@ int FAST_FUNC bb_system(const char *command) {
 
        /* we use sh because it might launch ash or hush,
         * and this is also what system() does. */
-       system_argv[0] = xstrdup("sh");
+       system_argv[0] = xstrdup(get_shell_name());
        system_argv[1] = xstrdup("-c");
 
        /* we must ensure command stays unchanged. */
-- 
2.43.0

_______________________________________________
busybox mailing list
[email protected]
https://lists.busybox.net/mailman/listinfo/busybox

Reply via email to