Discussion:
git: libc/mktemp: Pass flags to open()
Aaron LI
2018-11-05 14:33:57 UTC
Permalink
commit 1fa9cec2ee4817e109c7359b2ee77108c299a2cd
Author: Simon Arlott <sa.me.uk>
Date: Sat Nov 3 20:08:07 2018 +0000

libc/mktemp: Pass flags to open()

The flags from the functions that call _gettemp() are never used.

They should be included in the call to open(), otherwise features like
O_CLOEXEC don't work.

aly:
(1) Checked FreeBSD and it behaves the same way as this fix.
(2) Improve the style a bit.

Summary of changes:
lib/libc/stdio/mktemp.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1fa9cec2ee4817e109c7359b2ee77108c299a2cd
--
DragonFly BSD source repository
Loading...