diff options
author | Andrej Shadura <andrew.shadura@collabora.co.uk> | 2018-09-07 10:34:11 +0200 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2020-03-28 21:42:55 +0000 |
commit | b0626ba1febdb535a674743070dfc3f3c5735b29 (patch) | |
tree | b86b949c004f86f4a03eb340475e3c4d087905c0 | |
parent | f74d60ab87269a10d5efadff1887a260783017dd (diff) | |
download | klibc-b0626ba1febdb535a674743070dfc3f3c5735b29.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/mkbuiltins | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/dash/mkbuiltins b/usr/dash/mkbuiltins index b4d6f4ec5501c..f1f259329996a 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() { |