28 lines
766 B
Diff
28 lines
766 B
Diff
|
From b132f9ef8b39ae31870be685566217191f8cde6a Mon Sep 17 00:00:00 2001
|
||
|
From: Peter Jones <pjones@redhat.com>
|
||
|
Date: Wed, 29 May 2019 10:18:56 -0400
|
||
|
Subject: [PATCH 22/63] Fix dbglog_write() to always return the status of
|
||
|
write()
|
||
|
|
||
|
Signed-off-by: Peter Jones <pjones@redhat.com>
|
||
|
---
|
||
|
src/error.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/error.c b/src/error.c
|
||
|
index 5eaee84599a..a77b0df1feb 100644
|
||
|
--- a/src/error.c
|
||
|
+++ b/src/error.c
|
||
|
@@ -185,7 +185,7 @@ dbglog_write(void *cookie UNUSED, const char *buf, size_t size)
|
||
|
ret = fwrite(buf, 1, size, log);
|
||
|
} else if (efi_dbglog_fd >= 0) {
|
||
|
lseek(efi_dbglog_fd, 0, SEEK_SET);
|
||
|
- write(efi_dbglog_fd, buf, size);
|
||
|
+ ret = write(efi_dbglog_fd, buf, size);
|
||
|
}
|
||
|
return ret;
|
||
|
}
|
||
|
--
|
||
|
2.26.2
|
||
|
|