From 05af8bd4f060ea39fcf31516459ae5f57e13121b Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 9 Oct 2014 12:23:59 +0200 Subject: sfdisk: ask on EOF Signed-off-by: Karel Zak --- disk-utils/sfdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'disk-utils/sfdisk.c') diff --git a/disk-utils/sfdisk.c b/disk-utils/sfdisk.c index d49ba5964..83b9cf57f 100644 --- a/disk-utils/sfdisk.c +++ b/disk-utils/sfdisk.c @@ -1275,6 +1275,7 @@ static int command_fdisk(struct sfdisk *sf, int argc, char **argv) switch (rc) { case SFDISK_DONE_ASK: + case SFDISK_DONE_EOF: if (sf->interactive) { int yes = 0; fdisk_ask_yesno(sf->cxt, _("Do you want to write this to disk?"), &yes); @@ -1284,7 +1285,6 @@ static int command_fdisk(struct sfdisk *sf, int argc, char **argv) break; } } - case SFDISK_DONE_EOF: case SFDISK_DONE_WRITE: rc = write_changes(sf); break; -- cgit v1.2.3-55-g7522