1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 22:21:51 +02:00
openwrt-xburst/package/busybox/patches/251-ash_fix-redir-substitution.patch
jow d0fc9333a9 [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
2012-06-10 13:19:45 +00:00

13 lines
460 B
Diff

--- 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 - (