diff options
author | Nicolas Thill <nico@openwrt.org> | 2010-04-27 11:59:19 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2010-04-27 11:59:19 +0000 |
commit | 14fe6e0238d151e394c1af1248e1a934ed39f816 (patch) | |
tree | 937fe06d202131f0c238024adbbe417be55192d0 /package/busybox/patches/000-upstream-ash.patch | |
parent | d3c4f6f02f6a4b2bca35c3b8c2b8dfdc10fd139d (diff) | |
download | upstream-14fe6e0238d151e394c1af1248e1a934ed39f816.tar.gz upstream-14fe6e0238d151e394c1af1248e1a934ed39f816.tar.bz2 upstream-14fe6e0238d151e394c1af1248e1a934ed39f816.zip |
package/busybox: add 2 upstream fixes (ash & cpio), bumb release number
SVN-Revision: 21186
Diffstat (limited to 'package/busybox/patches/000-upstream-ash.patch')
-rw-r--r-- | package/busybox/patches/000-upstream-ash.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/package/busybox/patches/000-upstream-ash.patch b/package/busybox/patches/000-upstream-ash.patch new file mode 100644 index 0000000000..c90e9d25c8 --- /dev/null +++ b/package/busybox/patches/000-upstream-ash.patch @@ -0,0 +1,14 @@ +--- a/shell/ash.c ++++ b/shell/ash.c +@@ -5424,7 +5424,11 @@ rmescapes(char *str, int flag) + size_t fulllen = len + strlen(p) + 1; + + if (flag & RMESCAPE_GROW) { ++ int strloc = str - (char *)stackblock(); + r = makestrspace(fulllen, expdest); ++ /* p and str may be invalidated by makestrspace */ ++ str = (char *)stackblock() + strloc; ++ p = str + len; + } else if (flag & RMESCAPE_HEAP) { + r = ckmalloc(fulllen); + } else { |