summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorSergey Ponomarev2021-01-09 23:09:51 +0200
committerDenys Vlasenko2021-06-06 13:44:08 +0200
commit4d983dcddeee94892d3072e84c7c9a01d4696055 (patch)
tree8c46e172fe1f7d94fc4609210348b57428d99f7c /networking
parent4c4b02c290ce8d24c467964eb25f5bfc8fc98c8b (diff)
downloadbusybox-4d983dcddeee94892d3072e84c7c9a01d4696055.zip
busybox-4d983dcddeee94892d3072e84c7c9a01d4696055.tar.gz
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>
Diffstat (limited to 'networking')
-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 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'`