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:
Sergey Ponomarev 2021-01-09 23:09:51 +02:00 committed by Denys Vlasenko
parent 4c4b02c290
commit 4d983dcdde

View File

@ -18,7 +18,7 @@
# ^M <--------- extra empty line
# -----------------------------29995809218093749221856446032--^M
file=/tmp/$$-$RANDOM
file=$(mktemp)
CR=`printf '\r'`