klibc-bot for Andrej Shadura
2020-Mar-28 21:49 UTC
[klibc] [klibc:update-dash] dash: builtin: Default to mktemp, not tempfile
Commit-ID: b0626ba1febdb535a674743070dfc3f3c5735b29 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=b0626ba1febdb535a674743070dfc3f3c5735b29 Author: Andrej Shadura <andrew.shadura at collabora.co.uk> AuthorDate: Fri, 7 Sep 2018 10:34:11 +0200 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:55 +0000 [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 at collabora.co.uk> Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au> Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/dash/mkbuiltins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/dash/mkbuiltins b/usr/dash/mkbuiltins index b4d6f4ec..f1f25932 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() {
Apparently Analagous Threads
- [klibc:update-dash] dash: shell: Fix build on Solaris 9
- [klibc:update-dash] shell: Fix build on Solaris 9
- [klibc:update-dash] dash: eval: Report I/O error on stdout
- [klibc:update-dash] dash: main: Print \n upon EOF (CTRL-D) when run interactively
- [klibc:update-dash] dash: eval: Use the correct expansion mode for fd redirection