summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/lib/command.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-04-01 16:11:50 +0100
committerLeah Rowe <leah@libreboot.org>2026-04-01 16:19:46 +0100
commitf68cedf202c1fc6c39243136a4d766bc1d67cc80 (patch)
treed9b2bccaaa19437aafe4e95ed56bfdebf2730b98 /util/libreboot-utils/lib/command.c
parent5b465d3af6d61c3a1dc69d727948bef470b7be46 (diff)
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 <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/lib/command.c')
-rw-r--r--util/libreboot-utils/lib/command.c2
1 files changed, 1 insertions, 1 deletions
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