3
0
forked from pool/util-linux
util-linux/util-linux-2.13.1-fdisk_cfdisk_yesno.patch

20 lines
787 B
Diff

Index: util-linux-ng-2.13.1/fdisk/cfdisk.c
===================================================================
--- util-linux-ng-2.13.1.orig/fdisk/cfdisk.c
+++ util-linux-ng-2.13.1/fdisk/cfdisk.c
@@ -1869,10 +1869,12 @@ write_part_table(void) {
clear_warning();
if (len == GS_ESCAPE)
return;
- else if (strcasecmp(response, _("no")) == 0) {
+ else if (strcasecmp(response, _("no")) == 0 ||
+ strcasecmp(response, "no") == 0) {
print_warning(_("Did not write partition table to disk"));
return;
- } else if (strcasecmp(response, _("yes")) == 0)
+ } else if (strcasecmp(response, _("yes")) == 0 ||
+ strcasecmp(response, "yes") == 0)
done = TRUE;
else
print_warning(_("Please enter `yes' or `no'"));