git: libc/mktemp: Pass flags to open()

Aaron LI aly at crater.dragonflybsd.org
Mon Nov 5 06:33:57 PST 2018


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



More information about the Commits mailing list