Re: [PATCH] cfdisk, fix behavior after writing changes

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

 



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!

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com




[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