From fd26c6e63163d9811a89c3a5ca27a9aa2f61b09f Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 28 Mar 2026 07:06:22 +0000 Subject: 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 --- util/libreboot-utils/lib/mkhtemp.c | 1 - 1 file changed, 1 deletion(-) (limited to 'util/libreboot-utils/lib') diff --git a/util/libreboot-utils/lib/mkhtemp.c b/util/libreboot-utils/lib/mkhtemp.c index e499de34..f3a0087b 100644 --- a/util/libreboot-utils/lib/mkhtemp.c +++ b/util/libreboot-utils/lib/mkhtemp.c @@ -479,7 +479,6 @@ sticky_hell: errno = EPERM; close_no_err(&dirfd); - errno = saved_errno; return 0; } -- cgit v1.2.1