]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cfdisk: wrong interpretation of yes in non-english language
authorKarel Zak <kzak@redhat.com>
Tue, 26 Aug 2014 15:03:11 +0000 (17:03 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 27 Aug 2014 11:42:30 +0000 (13:42 +0200)
Reported-by: tnut@nutyx.org
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/cfdisk.c

index 536132af058c807a599b50da012b16c86f60f7ac..fc5326340f9342049259124594ed02a264aa0b2d 100644 (file)
@@ -1835,8 +1835,8 @@ static int main_menu_action(struct cfdisk *cf, int key)
                          buf, sizeof(buf));
 
                ref = 1;
-               if (rc <= 0 || strcasecmp(buf, "yes") != 0
-                           || strcasecmp(buf, _("yes")) != 0) {
+               if (rc <= 0 || (strcasecmp(buf, "yes") != 0
+                               && strcasecmp(buf, _("yes"))) != 0) {
                        info = _("Did not write partition table to disk");
                        break;
                }