Fix applet_name.
authorMatt Kraai <kraai@debian.org>
Thu, 17 May 2001 20:40:21 +0000 (20:40 -0000)
committerMatt Kraai <kraai@debian.org>
Thu, 17 May 2001 20:40:21 +0000 (20:40 -0000)
chroot.c
coreutils/chroot.c

index c10df7a7c8cc35d0597e652feec7c52b0c31dd84..f2d9b4d00b4d50103f6fe3d9a76960d9fd5fc06b 100644 (file)
--- 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
index c10df7a7c8cc35d0597e652feec7c52b0c31dd84..f2d9b4d00b4d50103f6fe3d9a76960d9fd5fc06b 100644 (file)
@@ -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