aboutsummaryrefslogtreecommitdiff
path: root/libbb/run_shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/run_shell.c')
-rw-r--r--libbb/run_shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/run_shell.c b/libbb/run_shell.c
index b2b4216f4..239887d85 100644
--- a/libbb/run_shell.c
+++ b/libbb/run_shell.c
@@ -67,7 +67,7 @@ void run_shell(const char *shell, int loginshell, const char *command, const cha
67 67
68 args = xmalloc(sizeof(char*) * (4 + additional_args_cnt)); 68 args = xmalloc(sizeof(char*) * (4 + additional_args_cnt));
69 69
70 args[0] = bb_get_last_path_component(xstrdup(shell)); 70 args[0] = bb_get_last_path_component_nostrip(xstrdup(shell));
71 71
72 if (loginshell) 72 if (loginshell)
73 args[0] = xasprintf("-%s", args[0]); 73 args[0] = xasprintf("-%s", args[0]);