diff options
Diffstat (limited to 'package/utils/busybox/patches/002-upstream_ash_fix.patch')
-rw-r--r-- | package/utils/busybox/patches/002-upstream_ash_fix.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/package/utils/busybox/patches/002-upstream_ash_fix.patch b/package/utils/busybox/patches/002-upstream_ash_fix.patch new file mode 100644 index 0000000..46fd7f8 --- /dev/null +++ b/package/utils/busybox/patches/002-upstream_ash_fix.patch @@ -0,0 +1,11 @@ +--- a/shell/ash.c ++++ b/shell/ash.c +@@ -13014,7 +13014,7 @@ init(void) + setvar2("PPID", utoa(getppid())); + #if ENABLE_ASH_BASH_COMPAT + p = lookupvar("SHLVL"); +- setvar2("SHLVL", utoa(p ? atoi(p) + 1 : 1)); ++ setvar("SHLVL", utoa((p ? atoi(p) : 0) + 1), VEXPORT); + #endif + p = lookupvar("PWD"); + if (p) { |