summaryrefslogtreecommitdiff
path: root/util/libreboot-utils
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-28 07:06:22 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-28 07:06:22 +0000
commitfd26c6e63163d9811a89c3a5ca27a9aa2f61b09f (patch)
treeb7adb7392da6b18153d897a039a1df0a86565332 /util/libreboot-utils
parent0f1a22174fc7c6a0767617974640d521074174d5 (diff)
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>
Diffstat (limited to 'util/libreboot-utils')
-rw-r--r--util/libreboot-utils/lib/mkhtemp.c1
1 files changed, 0 insertions, 1 deletions
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;
}