glibc/catgets
Sergey Bugaev 533deafbdf Use O_CLOEXEC in more places (BZ #15722)
When opening a temporary file without O_CLOEXEC we risk leaking the
file descriptor if another thread calls (fork and then) exec while we
have the fd open. Fix this by consistently passing O_CLOEXEC everywhere
where we open a file for internal use (and not to return it to the user,
in which case the API defines whether or not the close-on-exec flag
shall be set on the returned fd).

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230419160207.65988-4-bugaevc@gmail.com>
2023-04-22 13:50:14 +02:00
..
catgets.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
catgetsinfo.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
config.h
Depend Update. 2000-09-07 03:49:56 +00:00
gencat.c Update copyright dates not handled by scripts/update-copyrights 2023-01-06 21:45:36 +00:00
Makefile Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nl_types.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
open_catalog.c Use O_CLOEXEC in more places (BZ #15722) 2023-04-22 13:50:14 +02:00
sample.SJIS Update. 2002-06-29 21:08:13 +00:00
test1.msg Update. 1998-10-30 19:17:59 +00:00
test2.msg Update. 2003-02-22 23:19:31 +00:00
test-gencat.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
test-gencat.sh Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-catgets.c Fix building glibc master with NDEBUG and --with-cpu. 2016-03-15 23:23:24 -04:00
Versions Update. 2002-02-01 23:24:05 +00:00
xopen-msg.awk Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00