Avoid fall-through if file matching temporary name exists
commit41159c5cfd3538542107f928aa13ceeb3c98e62d
authorSven Linker <sven.linker@kernkonzept.com>
Wed, 7 Feb 2024 09:27:58 +0000 (7 10:27 +0100)
committerWaldemar Brodkorb <wbx@openadk.org>
Sun, 18 Feb 2024 04:56:22 +0000 (18 05:56 +0100)
treea1c9ae3f484a5259ea971eb3023202dd0bb8a425
parented6a9513157f54894629d8dfa8890df0245505ec
Avoid fall-through if file matching temporary name exists

During checking whether a temporary name can be created, it may happen
that a file with this name already exists. Avoid falling through to
opening the file name in this case, and return with an error instead.

Signed-off-by: Sven Linker <sven.linker@kernkonzept.com>
libc/misc/internals/tempname.c