Blame SOURCES/0002-Fix-the-32bit-signedness-comparison.patch
|
|
112f40 |
From cdb4b6f3bfd6ada6558ddfb889e27150f0841b28 Mon Sep 17 00:00:00 2001
|
|
|
112f40 |
From: Gary Ching-Pang Lin <glin@suse.com>
|
|
|
112f40 |
Date: Mon, 24 Nov 2014 11:38:54 +0800
|
|
|
112f40 |
Subject: [PATCH 02/10] Fix the 32bit signedness comparison
|
|
|
112f40 |
|
|
|
112f40 |
---
|
|
|
112f40 |
src/mokutil.c | 4 ++--
|
|
|
112f40 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
112f40 |
|
|
|
112f40 |
diff --git a/src/mokutil.c b/src/mokutil.c
|
|
|
112f40 |
index 93fb6fabcab..a7e83f71f0b 100644
|
|
|
112f40 |
--- a/src/mokutil.c
|
|
|
112f40 |
+++ b/src/mokutil.c
|
|
|
112f40 |
@@ -1284,7 +1284,7 @@ issue_mok_request (char **files, uint32_t total, MokRequest req,
|
|
|
112f40 |
|
|
|
112f40 |
/* Mok */
|
|
|
112f40 |
read_size = read (fd, ptr, sizes[i]);
|
|
|
112f40 |
- if (read_size < 0 || read_size != sizes[i]) {
|
|
|
112f40 |
+ if (read_size < 0 || read_size != (int64_t)sizes[i]) {
|
|
|
112f40 |
fprintf (stderr, "Failed to read %s\n", files[i]);
|
|
|
112f40 |
goto error;
|
|
|
112f40 |
}
|
|
|
112f40 |
@@ -1645,7 +1645,7 @@ export_moks ()
|
|
|
112f40 |
goto error;
|
|
|
112f40 |
}
|
|
|
112f40 |
|
|
|
112f40 |
- while (offset < list[i].mok_size) {
|
|
|
112f40 |
+ while (offset < (int64_t)list[i].mok_size) {
|
|
|
112f40 |
write_size = write (fd, list[i].mok + offset,
|
|
|
112f40 |
list[i].mok_size - offset);
|
|
|
112f40 |
if (write_size < 0) {
|
|
|
112f40 |
--
|
|
|
112f40 |
2.17.1
|
|
|
112f40 |
|