diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-06-10 13:19:45 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-06-10 13:19:45 +0000 |
commit | d0fc9333a91498555cd2e327f6ce47fd3dce9ac1 (patch) | |
tree | a05c177ab26eeecaaa0d1df2f642373a0f1d1f16 /package/busybox/patches | |
parent | 97a21abd4f12a1ead5e26100177763016a28c501 (diff) |
[package] busybox: fix bad variable substitution on right hand side of I/O redirection, imported patch from upstream bug 5282
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32162 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/busybox/patches')
-rw-r--r-- | package/busybox/patches/251-ash_fix-redir-substitution.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/package/busybox/patches/251-ash_fix-redir-substitution.patch b/package/busybox/patches/251-ash_fix-redir-substitution.patch new file mode 100644 index 000000000..cb2ae94e0 --- /dev/null +++ b/package/busybox/patches/251-ash_fix-redir-substitution.patch @@ -0,0 +1,12 @@ +--- a/shell/ash.c ++++ b/shell/ash.c +@@ -6846,8 +6846,7 @@ evalvar(char *p, int flags, struct strli + patloc = expdest - (char *)stackblock(); + if (NULL == subevalvar(p, /* varname: */ NULL, patloc, subtype, + startloc, varflags, +-//TODO: | EXP_REDIR too? All other such places do it too +- /* quotes: */ flags & (EXP_FULL | EXP_CASE), ++ /* quotes: */ flags & (EXP_FULL | EXP_CASE | EXP_REDIR), + var_str_list) + ) { + int amount = expdest - ( |