[git commit] httpd_post_upload.cgi: use mktemp to avoid $RANDOM
Denys Vlasenko
vda.linux at googlemail.com
Sun Jun 6 11:44:08 UTC 2021
commit: https://git.busybox.net/busybox/commit/?id=4d983dcddeee94892d3072e84c7c9a01d4696055
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
The $RANDOM variable may be disabled on ash compilation but we can safelly use mktemp instead.
Signed-off-by: Sergey Ponomarev <stokito at gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
networking/httpd_post_upload.cgi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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'`
More information about the busybox-cvs
mailing list