From 4d983dcddeee94892d3072e84c7c9a01d4696055 Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Sat, 9 Jan 2021 23:09:51 +0200 Subject: 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 Signed-off-by: Denys Vlasenko --- networking/httpd_post_upload.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'networking') diff --git a/networking/httpd_post_upload.cgi b/networking/httpd_post_upload.cgi index e4ffd2b..538f718 100755 --- a/networking/httpd_post_upload.cgi +++ b/networking/httpd_post_upload.cgi @@ -18,7 +18,7 @@ # ^M <--------- extra empty line # -----------------------------29995809218093749221856446032--^M -file=/tmp/$$-$RANDOM +file=$(mktemp) CR=`printf '\r'` -- cgit v1.1