]> 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>
Tue, 26 Aug 2014 15:03:11 +0000 (17:03 +0200)
Reported-by: tnut@nutyx.org
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/cfdisk.c

index 88f9b48fa7159516f3173cb5c50cbd523f1e14f0..3f2698e467f7415041edbe91ca2e6020ca45af93 100644 (file)
@@ -1870,8 +1870,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;
                }