From: Karel Zak Date: Tue, 28 Apr 2009 07:16:32 +0000 (+0200) Subject: cfdisk: fix "cannot seek on disk drive" bug X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=279723e92d665b0a782a780de77c7d73b09426c5;p=util-linux cfdisk: fix "cannot seek on disk drive" bug Addresses-Debian-Bug: #511161 Signed-off-by: Karel Zak --- diff --git a/TODO b/TODO index 3c7a95bb..21b0ee33 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 10ba31a1..96246803 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;