summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSergey Ponomarev <stokito@gmail.com>2021-01-09 23:09:51 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2021-06-06 13:44:08 +0200
commit4d983dcddeee94892d3072e84c7c9a01d4696055 (patch)
tree8c46e172fe1f7d94fc4609210348b57428d99f7c
parent4c4b02c290ce8d24c467964eb25f5bfc8fc98c8b (diff)
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>
-rwxr-xr-xnetworking/httpd_post_upload.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/httpd_post_upload.cgi b/networking/httpd_post_upload.cgi
index e4ffd2bb5..538f7181b 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'`