On 6/26/23 13:30, Karel Zak wrote:
On Sun, Jun 25, 2023 at 01:31:33PM +0200, Florian Zimmermann wrote:
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 */
}
It seems that 'Quit' does not have to be the second item in the menu in
all cases. I have applied a little bit different version of the patch:
https://github.com/util-linux/util-linux/commit/b0d4d093796c3a3776b155e4ec7e2aa7cb09677d
Thanks!
Thanks, your modified patch is more generic and better indeed.
CCing debian bug folks.
Florian