aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/busybox/patches/002-upstream_ash_fix.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-25 17:42:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-05-25 17:42:09 +0000
commit361e70a4855e69d2e5d41f85ba3896eaa37bcfa6 (patch)
tree57a5c3d39799a3bb41b11961df2bc18bd457355e /package/utils/busybox/patches/002-upstream_ash_fix.patch
parenteca9f275a1cfc875a98a5e790b04875c159a14ee (diff)
downloadmaster-187ad058-361e70a4855e69d2e5d41f85ba3896eaa37bcfa6.tar.gz
master-187ad058-361e70a4855e69d2e5d41f85ba3896eaa37bcfa6.tar.bz2
master-187ad058-361e70a4855e69d2e5d41f85ba3896eaa37bcfa6.zip
busybox: update to 1.22.1
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40852 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/utils/busybox/patches/002-upstream_ash_fix.patch')
-rw-r--r--package/utils/busybox/patches/002-upstream_ash_fix.patch11
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 0000000000..46fd7f88fe
--- /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) {