diff options
author | Karel Zak | 2014-10-09 12:23:59 +0200 |
---|---|---|
committer | Karel Zak | 2014-10-09 12:23:59 +0200 |
commit | 05af8bd4f060ea39fcf31516459ae5f57e13121b (patch) | |
tree | 71a048c2bd98d7e0c309104761d773aaf920a361 /disk-utils/sfdisk.c | |
parent | libfdisk: (dos) follow explicit sizes (diff) | |
download | kernel-qcow2-util-linux-05af8bd4f060ea39fcf31516459ae5f57e13121b.tar.gz kernel-qcow2-util-linux-05af8bd4f060ea39fcf31516459ae5f57e13121b.tar.xz kernel-qcow2-util-linux-05af8bd4f060ea39fcf31516459ae5f57e13121b.zip |
sfdisk: ask on EOF
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/sfdisk.c')
-rw-r--r-- | disk-utils/sfdisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |