From c104549b483c83acdf3e12cfe3df2c6437fa6926 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 25 Jul 2018 13:45:36 +0200 Subject: fdisk: sync up with some util-linux 2.31 behavior = display default is no longer in cylinders = +sizeC is no longer supported = add +sizeT suffix - terabytes are here = K,M,G,T and k,m,g,t suffixes all are binary, not decimal = +sizeM results in last sector +(size * 1Mbyte - 1), not +(size * 1Mbyte) = fix comparison to "YES" answer for sgi/sun function old new delta read_int 492 519 +27 fdisk_main 2644 2640 -4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 27/-4) Total: 23 bytes Signed-off-by: Denys Vlasenko --- util-linux/fdisk_sun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util-linux/fdisk_sun.c') diff --git a/util-linux/fdisk_sun.c b/util-linux/fdisk_sun.c index f62a53ac6..3697a69b9 100644 --- a/util-linux/fdisk_sun.c +++ b/util-linux/fdisk_sun.c @@ -606,7 +606,7 @@ sun_change_sysid(int i, int sys) "there may destroy your partition table and bootblock.\n" "Type YES if you're very sure you would like that partition\n" "tagged with 82 (Linux swap): "); - if (strcmp(line_ptr, "YES\n")) + if (strcmp(line_ptr, "YES") != 0) return; } switch (sys) { -- cgit v1.2.3