mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-03 14:34:27 -05:00 
			
		
		
		
	busybox: fix bad variable substitution on right hand side of I/O redirection, imported patch from upstream bug 5282
SVN-Revision: 32162
This commit is contained in:
		
							parent
							
								
									fd29691f89
								
							
						
					
					
						commit
						e2be7290b1
					
				@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 | 
			
		||||
 | 
			
		||||
PKG_NAME:=busybox
 | 
			
		||||
PKG_VERSION:=1.19.4
 | 
			
		||||
PKG_RELEASE:=1
 | 
			
		||||
PKG_RELEASE:=2
 | 
			
		||||
PKG_FLAGS:=essential
 | 
			
		||||
 | 
			
		||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										12
									
								
								package/busybox/patches/251-ash_fix-redir-substitution.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								package/busybox/patches/251-ash_fix-redir-substitution.patch
									
									
									
									
									
										Normal file
									
								
							@ -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 - (
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user