mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
lbutils/file: only override EEXIST if not set
in the linux fast path, we are universally overriding errno with EEXIST, which pollutes errno in case of debugging under fault condition. this is inconsistent with posix and also leah. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -717,6 +717,7 @@ mkhtemp_tmpfile_linux(int dirfd,
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!errno)
|
||||
errno = EEXIST;
|
||||
err:
|
||||
if (linked)
|
||||
|
||||
Reference in New Issue
Block a user