summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2014-01-31 10:35:53 +0100
committerKarel Zak2014-03-11 11:35:13 +0100
commitd80921acdf0c077a49c2eca38f3dc88d3cd76ee3 (patch)
tree06c7e86f11728438fd014bc0f34a7f819e996722
parentcfdisk: support <size>S, and long hint messages (diff)
downloadkernel-qcow2-util-linux-d80921acdf0c077a49c2eca38f3dc88d3cd76ee3.tar.gz
kernel-qcow2-util-linux-d80921acdf0c077a49c2eca38f3dc88d3cd76ee3.tar.xz
kernel-qcow2-util-linux-d80921acdf0c077a49c2eca38f3dc88d3cd76ee3.zip
cfdisk: use real partno
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--fdisks/cfdisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fdisks/cfdisk.c b/fdisks/cfdisk.c
index f40272a65..adc6c3c96 100644
--- a/fdisks/cfdisk.c
+++ b/fdisks/cfdisk.c
@@ -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 */