nvmutil: fix bad return status on error

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-04-22 02:54:00 +01:00
parent 4bf88a8081
commit 40cb95b15e
+1 -1
View File
@@ -472,7 +472,7 @@ writeGbe(void)
err_if(nw == -1);
if (nw != nf) {
errno = ECANCELED;
err(EXIT_SUCCESS,
err(EXIT_FAILURE,
"%ld bytes written to '%s', expected %ld bytes\n",
nw, filename, nf);
}