Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[package] busybox: fix bad variable substitution on right hand side o…
…f I/O redirection, imported patch from upstream bug 5282 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32162 3c298f89-4303-0410-b956-a3cf2f4a3e73
- Loading branch information
jow
committed
Jun 10, 2012
1 parent
97a21ab
commit d0fc933
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
package/busybox/patches/251-ash_fix-redir-substitution.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 - ( |