From: Matt Kraai Date: Thu, 17 May 2001 20:40:21 +0000 (-0000) Subject: Fix applet_name. X-Git-Tag: 0_52~164 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=69438154000344f0fc60b12c0d31b297c698b5f4;p=oweals%2Fbusybox.git Fix applet_name. --- 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) #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 c10df7a7c..f2d9b4d00 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