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