Util-Linux Archive mirror
 help / color / mirror / Atom feed
From: Florian Zimmermann <florian.zimmermann@gmail.com>
To: util-linux@vger.kernel.org
Subject: [PATCH] cfdisk, fix behavior after writing changes
Date: Sun, 25 Jun 2023 13:31:33 +0200	[thread overview]
Message-ID: <CAJed8sMYhw9iYSBN5XqdJiJkiqrciT+yudDBZBRhN8pnfc6CaA@mail.gmail.com> (raw)

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@duck.com>
---
 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

             reply	other threads:[~2023-06-25 11:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-25 11:31 Florian Zimmermann [this message]
2023-06-26 11:30 ` [PATCH] cfdisk, fix behavior after writing changes Karel Zak
2023-06-26 12:02   ` Florian Zimmermann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJed8sMYhw9iYSBN5XqdJiJkiqrciT+yudDBZBRhN8pnfc6CaA@mail.gmail.com \
    --to=florian.zimmermann@gmail.com \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).