diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-28 07:06:22 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-28 07:06:22 +0000 |
| commit | fd26c6e63163d9811a89c3a5ca27a9aa2f61b09f (patch) | |
| tree | b7adb7392da6b18153d897a039a1df0a86565332 | |
| parent | 0f1a22174fc7c6a0767617974640d521074174d5 (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>
| -rw-r--r-- | util/libreboot-utils/lib/mkhtemp.c | 1 |
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; } |
