dcavalca / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone

Blame SOURCES/0089-fdisk-fix-Blocks-column-calculation.patch

64664a
From acf8de63d2a797850935feeaf6bac2dd21c9b496 Mon Sep 17 00:00:00 2001
64664a
From: Karel Zak <kzak@redhat.com>
64664a
Date: Wed, 15 Mar 2017 13:23:56 +0100
64664a
Subject: [PATCH 089/116] fdisk: fix Blocks column calculation
64664a
64664a
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1344102
64664a
Signed-off-by: Karel Zak <kzak@redhat.com>
64664a
---
64664a
 fdisks/fdiskdoslabel.c | 2 +-
64664a
 1 file changed, 1 insertion(+), 1 deletion(-)
64664a
64664a
diff --git a/fdisks/fdiskdoslabel.c b/fdisks/fdiskdoslabel.c
64664a
index b7eb35a..6375692 100644
64664a
--- a/fdisks/fdiskdoslabel.c
64664a
+++ b/fdisks/fdiskdoslabel.c
64664a
@@ -1202,7 +1202,7 @@ int dos_list_table(struct fdisk_context *cxt,
64664a
 		p = pe->part_table;
64664a
 		if (p && !is_cleared_partition(p)) {
64664a
 			unsigned int psects = get_nr_sects(p);
64664a
-			unsigned int pblocks = psects;
64664a
+			unsigned long pblocks = psects;
64664a
 			unsigned int podd = 0;
64664a
 			struct fdisk_parttype *type =
64664a
 					fdisk_get_parttype_from_code(cxt, p->sys_ind);
64664a
-- 
64664a
2.9.3
64664a