mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 15:03:44 +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;
|
errno = EPERM;
|
||||||
|
|
||||||
close_no_err(&dirfd);
|
close_no_err(&dirfd);
|
||||||
errno = saved_errno;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user