From: Karel Zak Date: Thu, 20 Jun 2013 09:36:25 +0000 (+0200) Subject: fdisk: (dos) don't check for CHS in move-begin command X-Git-Tag: v2.24-rc1~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6dc30bc6df4e958c1fad0426a580fde753367327;p=thirdparty%2Futil-linux.git fdisk: (dos) don't check for CHS in move-begin command Signed-off-by: Karel Zak --- diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c index ad240dbc3d..ab40517cca 100644 --- a/fdisks/fdisk.c +++ b/fdisks/fdisk.c @@ -158,7 +158,7 @@ int warn_geometry(struct fdisk_context *cxt) "this from the extra functions menu.")); return 1; } - return 1; + return 0; } static void toggle_dos_compatibility_flag(struct fdisk_context *cxt) diff --git a/fdisks/fdiskdoslabel.c b/fdisks/fdiskdoslabel.c index 7af8d74900..4c3932ece3 100644 --- a/fdisks/fdiskdoslabel.c +++ b/fdisks/fdiskdoslabel.c @@ -1522,8 +1522,6 @@ void dos_move_begin(struct fdisk_context *cxt, int i) assert(cxt); assert(fdisk_is_disklabel(cxt, DOS)); - if (warn_geometry(cxt)) - return; if (!p->sys_ind || !dos_partition_get_size(p) || IS_EXTENDED (p->sys_ind)) { printf(_("Partition %d has no data area\n"), i + 1); return;