From f68cedf202c1fc6c39243136a4d766bc1d67cc80 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 1 Apr 2026 16:11:50 +0100 Subject: libreboot-utils/file: never retry file rw on zero even with a timer, it's possible that on a buggy system, we may keep writing even though the outcome is zero. if a system comes back with zero bytes written, that is a fatal bug and we should stop. Signed-off-by: Leah Rowe --- util/libreboot-utils/lib/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/libreboot-utils/lib/command.c') diff --git a/util/libreboot-utils/lib/command.c b/util/libreboot-utils/lib/command.c index 526ad03b..be5e8712 100644 --- a/util/libreboot-utils/lib/command.c +++ b/util/libreboot-utils/lib/command.c @@ -493,7 +493,7 @@ cat_buf(unsigned char *b) exitf("null pointer in cat command"); if (rw_file_exact(STDOUT_FILENO, b, - GBE_PART_SIZE, 0, IO_WRITE, MAX_ZERO_RW_RETRY) < 0) + GBE_PART_SIZE, 0, IO_WRITE) < 0) exitf("stdout: cat"); } void -- cgit v1.2.1