mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-19 19:23:24 +02:00
@@ -2088,6 +2088,16 @@ real_pread_pwrite:
|
|||||||
if (!off_reset)
|
if (!off_reset)
|
||||||
goto err_prw;
|
goto err_prw;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Even if we allow to continue,
|
||||||
|
* we still need to reset the
|
||||||
|
* offset. If we can't, then
|
||||||
|
* we can't recover at all.
|
||||||
|
*
|
||||||
|
* However, we must preserve
|
||||||
|
* errno in that case, so
|
||||||
|
* just return immediately.
|
||||||
|
*/
|
||||||
if (lseek_loop(fd, off, SEEK_SET,
|
if (lseek_loop(fd, off, SEEK_SET,
|
||||||
loop_eagain, loop_eintr) == (off_t)-1)
|
loop_eagain, loop_eintr) == (off_t)-1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user