diff options
-rw-r--r-- | chroot.c | 1 | ||||
-rw-r--r-- | coreutils/chroot.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -56,6 +56,7 @@ int chroot_main(int argc, char **argv) #else char shell[] = "/bin/sh"; char *shell_argv[2] = { shell, NULL }; + applet_name = shell; shell_main(1, shell_argv); return EXIT_SUCCESS; #endif diff --git a/coreutils/chroot.c b/coreutils/chroot.c index c10df7a..f2d9b4d 100644 --- a/coreutils/chroot.c +++ b/coreutils/chroot.c @@ -56,6 +56,7 @@ int chroot_main(int argc, char **argv) #else char shell[] = "/bin/sh"; char *shell_argv[2] = { shell, NULL }; + applet_name = shell; shell_main(1, shell_argv); return EXIT_SUCCESS; #endif |