summary refs log tree commit diff
path: root/src/mkbuiltins
diff options
context:
space:
mode:
authorAndrej Shadura <andrew.shadura@collabora.co.uk>2018-09-07 10:34:11 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2018-11-19 18:59:50 +0800
commitad072645af04c31300c84d2840fcf1a8d48588ec (patch)
tree7b4fc13118dfc111e2f209bc7a2cc013e2044ac8 /src/mkbuiltins
parentshell: update .gitignore (diff)
downloaddash-ad072645af04c31300c84d2840fcf1a8d48588ec.tar.gz
dash-ad072645af04c31300c84d2840fcf1a8d48588ec.zip
builtin: Default to mktemp, not tempfile
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>
Diffstat (limited to '')
-rw-r--r--src/mkbuiltins2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mkbuiltins b/src/mkbuiltins
index b4d6f4e..f1f2593 100644
--- a/src/mkbuiltins
+++ b/src/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()
 	{