From 279723e92d665b0a782a780de77c7d73b09426c5 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 28 Apr 2009 09:16:32 +0200 Subject: [PATCH] cfdisk: fix "cannot seek on disk drive" bug Addresses-Debian-Bug: #511161 Signed-off-by: Karel Zak --- TODO | 2 ++ fdisk/cfdisk.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.5