From: Karel Zak Date: Tue, 28 Apr 2009 07:16:32 +0000 (+0200) Subject: cfdisk: fix "cannot seek on disk drive" bug X-Git-Tag: v2.15~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=279723e92d665b0a782a780de77c7d73b09426c5;p=thirdparty%2Futil-linux.git cfdisk: fix "cannot seek on disk drive" bug Addresses-Debian-Bug: #511161 Signed-off-by: Karel Zak --- diff --git a/TODO b/TODO index 3c7a95bb13..21b0ee3321 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,5 @@ + * fdisk/* -- use off_t instead "long long" + * mkswap: use /proc/sys/kernel/random/uuid as a fallback solution for builds without libuuid diff --git a/fdisk/cfdisk.c b/fdisk/cfdisk.c index 10ba31a152..96246803e0 100644 --- a/fdisk/cfdisk.c +++ b/fdisk/cfdisk.c @@ -303,7 +303,7 @@ partition_info ext_info; int num_parts = 0; int logical = 0; -int logical_sectors[MAXIMUM_PARTS]; +long long logical_sectors[MAXIMUM_PARTS]; __sighandler_t old_SIGINT, old_SIGTERM;