]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cfdisk: use real partno
authorKarel Zak <kzak@redhat.com>
Fri, 31 Jan 2014 09:35:53 +0000 (10:35 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 11 Mar 2014 10:35:13 +0000 (11:35 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisks/cfdisk.c

index f40272a65e65192bf15a8ede7d2568c4dbe28aaa..adc6c3c9658c5e7929f9297338472be8a1698c07 100644 (file)
@@ -622,8 +622,8 @@ static int menu_cb_main(struct cfdisk *cf, int key)
        assert(cf->cxt);
        assert(key);
 
-       n = cf->lines_idx;      /* the current partition */
        pa = get_current_partition(cf);
+       n = fdisk_partition_get_partno(pa);
 
        switch (key) {
        case 'b': /* Bootable flag */