util/nvmutil: reset errno if EINTR on lseek

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-10 12:32:42 +00:00
parent bbe6de44e8
commit ee751c27ed
+3
View File
@@ -1425,6 +1425,9 @@ lseek_eintr(int fd, off_t offset, int whence)
old = lseek(fd, offset, whence);
} while (old == (off_t)-1 && errno == EINTR);
if (errno == EINTR)
errno = 0;
return old;
}