aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2014-01-13 10:14:08 +0000
committerRon Yorston <rmy@pobox.com>2014-01-13 10:14:08 +0000
commitc7ae26e1793f3859a5adebd03c0b0485ce6f31ea (patch)
treec394276b625d1992414ff52fd374f19a93d2d1db /shell
parente6edcba4f2fc20a3e9db75ebe82d7a71094fe17c (diff)
downloadbusybox-w32-c7ae26e1793f3859a5adebd03c0b0485ce6f31ea.tar.gz
busybox-w32-c7ae26e1793f3859a5adebd03c0b0485ce6f31ea.tar.bz2
busybox-w32-c7ae26e1793f3859a5adebd03c0b0485ce6f31ea.zip
ash: revert initialisation of SHLVL: fixed upstream
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/shell/ash.c b/shell/ash.c
index a916f2772..6b7c9f2a2 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -13600,10 +13600,6 @@ init(void)
13600 pw = xgetpwuid(getuid()); 13600 pw = xgetpwuid(getuid());
13601 setup_environment(pw->pw_shell, 13601 setup_environment(pw->pw_shell,
13602 SETUP_ENV_CHANGEENV|SETUP_ENV_NO_CHDIR, pw); 13602 SETUP_ENV_CHANGEENV|SETUP_ENV_NO_CHDIR, pw);
13603
13604#if ENABLE_ASH_BASH_COMPAT
13605 setvareq("SHLVL=0", VEXPORT|VTEXTFIXED);
13606#endif
13607 } 13603 }
13608#endif 13604#endif
13609 for (envp = environ; envp && *envp; envp++) { 13605 for (envp = environ; envp && *envp; envp++) {