[PATCH] cfdisk, fix behavior after writing changes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



after a successful write, cfdisk remains on the "Write" cursor and furthermore
when navigating to "Quit" will continue to  show "...without writing changes",
despite there were writes. This patch addresses that.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=927041

Signed-off-by: Florian Zimmermann <florianzimmermann@xxxxxxxx>
---
 disk-utils/cfdisk.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c
index 2e29421d7..a05a50f3e 100644
--- a/disk-utils/cfdisk.c
+++ b/disk-utils/cfdisk.c
@@ -2530,6 +2530,7 @@ static int main_menu_action(struct cfdisk *cf, int key)
                        else
                                fdisk_reread_partition_table(cf->cxt);
                        info = _("The partition table has been altered.");
+                      ui_menu_goto(cf, 2); /* after writing reset
next action to Quit by default */
                }
                cf->nwrites++;
                break;
-- 
2.39.2



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux