diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-10 12:32:42 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-10 12:32:42 +0000 |
| commit | ee751c27edf9be026354a219fa06d8db745c4bd0 (patch) | |
| tree | 00476d2da2fa59fe5f5500d7ba97b34b935d2659 /util/nvmutil | |
| parent | bbe6de44e80352cb12c89a0e925d85d6c276d869 (diff) | |
util/nvmutil: reset errno if EINTR on lseek
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 65da82e4..d2a0414b 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -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; } |
