aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrej Shadura <andrew.shadura@collabora.co.uk>2018-09-07 10:34:11 +0200
committerBen Hutchings <ben@decadent.org.uk>2021-04-27 23:58:21 +0200
commitaa2da3349dbaa2d3ba9d40cb07ea0e675f27592b (patch)
tree9419fae787891e59f9d3c0f3b467f414aed1efbf
parentbef2465c25ee052677e930d6712cd536f1483c9b (diff)
downloadklibc-aa2da3349dbaa2d3ba9d40cb07ea0e675f27592b.tar.gz
[klibc] dash: builtin: Default to mktemp, not tempfile
[ dash commit ad072645af04c31300c84d2840fcf1a8d48588ec ] Don't use tempfile, as it currently runs tempnam(), which is insecure and fails under pseudo(1). Signed-off-by: Andrej Shadura <andrew.shadura@collabora.co.uk> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r--usr/dash/mkbuiltins2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/dash/mkbuiltins b/usr/dash/mkbuiltins
index 70308bd82f7b8d..94b36b9537564d 100644
--- a/usr/dash/mkbuiltins
+++ b/usr/dash/mkbuiltins
@@ -35,7 +35,7 @@
#
# @(#)mkbuiltins 8.2 (Berkeley) 5/4/95
-tempfile=tempfile
+tempfile=mktemp
if ! type tempfile > /dev/null 2>&1 && ! type mktemp > /dev/null 2>&1; then
_my_tempfile()
{