From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: util-linux-owner@vger.kernel.org Received: from mx1.redhat.com ([209.132.183.28]:33336 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751618AbaHZR6V (ORCPT ); Tue, 26 Aug 2014 13:58:21 -0400 Date: Tue, 26 Aug 2014 19:58:17 +0200 From: Karel Zak To: tnut@nutyx.org Cc: util-linux@vger.kernel.org Subject: Re: cfdisk, wrong interpretation of yes in non-english language Message-ID: <20140826175817.GA30359@x2.net.home> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: util-linux-owner@vger.kernel.org List-ID: On Tue, Aug 26, 2014 at 11:18:09AM +0200, tnut@nutyx.org wrote: > - if (rc <= 0 || strcasecmp(buf, "yes") != 0 > - || strcasecmp(buf, _("yes")) != 0) { > + if (rc <= 0 || (strcasecmp(buf, "yes") != 0 > + && strcasecmp(buf, _("yes")) != 0)) { Fixed, thanks! Karel -- Karel Zak http://karelzak.blogspot.com