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:
Leah Rowe
2026-03-28 07:06:22 +00:00
parent 0f1a22174f
commit fd26c6e631
-1
View File
@@ -479,7 +479,6 @@ sticky_hell:
errno = EPERM;
close_no_err(&dirfd);
errno = saved_errno;
return 0;
}