diff options
author | Matthias Koenig | 2008-11-06 15:49:30 +0100 |
---|---|---|
committer | Karel Zak | 2008-11-14 00:09:23 +0100 |
commit | 4b13a5a66b264886b3d16f67667cd7914f31697e (patch) | |
tree | c0f4aac091a853e626a6d448f2aa28be7e751b2f /fdisk/cfdisk.c | |
parent | mkfs.minix: fix size detection (diff) | |
download | kernel-qcow2-util-linux-4b13a5a66b264886b3d16f67667cd7914f31697e.tar.gz kernel-qcow2-util-linux-4b13a5a66b264886b3d16f67667cd7914f31697e.tar.xz kernel-qcow2-util-linux-4b13a5a66b264886b3d16f67667cd7914f31697e.zip |
cfdisk: accept yes/no as fallback
Accept "yes" or "no" as fallback in case the question
has not been translated.
[kzak@redhat.com: note that rpmatch(3) looks at only the first
character of response, but we need have to
check the full yes/no string.]
Signed-off-by: Matthias Koenig <mkoenig@suse.de>
Diffstat (limited to 'fdisk/cfdisk.c')
-rw-r--r-- | fdisk/cfdisk.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fdisk/cfdisk.c b/fdisk/cfdisk.c index b0e188364..10ba31a15 100644 --- a/fdisk/cfdisk.c +++ b/fdisk/cfdisk.c @@ -1879,10 +1879,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'")); |