aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chroot.c1
-rw-r--r--coreutils/chroot.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/chroot.c b/chroot.c
index c10df7a7c..f2d9b4d00 100644
--- a/chroot.c
+++ b/chroot.c
@@ -56,6 +56,7 @@ int chroot_main(int argc, char **argv)
56#else 56#else
57 char shell[] = "/bin/sh"; 57 char shell[] = "/bin/sh";
58 char *shell_argv[2] = { shell, NULL }; 58 char *shell_argv[2] = { shell, NULL };
59 applet_name = shell;
59 shell_main(1, shell_argv); 60 shell_main(1, shell_argv);
60 return EXIT_SUCCESS; 61 return EXIT_SUCCESS;
61#endif 62#endif
diff --git a/coreutils/chroot.c b/coreutils/chroot.c
index c10df7a7c..f2d9b4d00 100644
--- a/coreutils/chroot.c
+++ b/coreutils/chroot.c
@@ -56,6 +56,7 @@ int chroot_main(int argc, char **argv)
56#else 56#else
57 char shell[] = "/bin/sh"; 57 char shell[] = "/bin/sh";
58 char *shell_argv[2] = { shell, NULL }; 58 char *shell_argv[2] = { shell, NULL };
59 applet_name = shell;
59 shell_main(1, shell_argv); 60 shell_main(1, shell_argv);
60 return EXIT_SUCCESS; 61 return EXIT_SUCCESS;
61#endif 62#endif