]> git.ipfire.org Git - thirdparty/util-linux.git/commit
misc: use everywhere mkstemp_cloexec() as fallback to mkostemp()
authorKarel Zak <kzak@redhat.com>
Mon, 7 Feb 2022 10:10:03 +0000 (11:10 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 7 Feb 2022 10:10:03 +0000 (11:10 +0100)
commitadcd2c322ce4b66f90cf423aad369643d49edd5d
tree0bc3ea9886baee506bb77ef3e5ed781796fdbc25
parent55bcc40952001c189f1aec865d30ad3f9536fe81
misc: use everywhere mkstemp_cloexec() as fallback to mkostemp()

The function mkostemp() does not have to be available everywhere,
and for this reason, we have mkstemp_cloexec() as a fallback solution.
Unfortunately, some codes (usually fuzzy tests) do not use the
fallback. Let's fix it.

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/script.c
libmount/src/utils.c
login-utils/last.c