mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
nvmutil: reset errno on successful write
previously, a bad checksum would have caused a non-zero exit, even if the other checksum was correct (observed when using the swap command) Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -269,5 +269,6 @@ writeGbeFile(void)
|
||||
handle_endianness(p^x);
|
||||
err_if(pwrite(fd, (uint8_t *) gbe[p^x], nf, p << 12) == -1);
|
||||
}
|
||||
errno = 0;
|
||||
err_if(close(fd) == -1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user