httpd_post_upload.cgi: use mktemp to avoid $RANDOM
The $RANDOM variable may be disabled on ash compilation but we can safelly use mktemp instead. Signed-off-by: Sergey Ponomarev <stokito@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
		
				
					committed by
					
						
						Denys Vlasenko
					
				
			
			
				
	
			
			
			
						parent
						
							4c4b02c290
						
					
				
				
					commit
					4d983dcdde
				
			@@ -18,7 +18,7 @@
 | 
				
			|||||||
# ^M    <--------- extra empty line
 | 
					# ^M    <--------- extra empty line
 | 
				
			||||||
# -----------------------------29995809218093749221856446032--^M
 | 
					# -----------------------------29995809218093749221856446032--^M
 | 
				
			||||||
 | 
					
 | 
				
			||||||
file=/tmp/$$-$RANDOM
 | 
					file=$(mktemp)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CR=`printf '\r'`
 | 
					CR=`printf '\r'`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user