diff options
author | Sergey Ponomarev | 2021-01-09 23:09:51 +0200 |
---|---|---|
committer | Denys Vlasenko | 2021-06-06 13:44:08 +0200 |
commit | 4d983dcddeee94892d3072e84c7c9a01d4696055 (patch) | |
tree | 8c46e172fe1f7d94fc4609210348b57428d99f7c /networking/httpd_post_upload.cgi | |
parent | 4c4b02c290ce8d24c467964eb25f5bfc8fc98c8b (diff) | |
download | busybox-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/httpd_post_upload.cgi')
-rwxr-xr-x | networking/httpd_post_upload.cgi | 2 |
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'` |