From: Karel Zak Date: Tue, 26 Aug 2014 15:03:11 +0000 (+0200) Subject: cfdisk: wrong interpretation of yes in non-english language X-Git-Tag: v2.26-rc1~487 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce3134dfdd3a9feb614050cbf742cec4c97e984b;p=thirdparty%2Futil-linux.git cfdisk: wrong interpretation of yes in non-english language Reported-by: tnut@nutyx.org Signed-off-by: Karel Zak --- diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c index 88f9b48fa7..3f2698e467 100644 --- a/disk-utils/cfdisk.c +++ b/disk-utils/cfdisk.c @@ -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; }