mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
util/mkhtemp: fix wrongful errno reset
on error state, i was resetting errno unconditionally, which would then mask the real error. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -479,7 +479,6 @@ sticky_hell:
|
||||
errno = EPERM;
|
||||
|
||||
close_no_err(&dirfd);
|
||||
errno = saved_errno;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user