From patchwork Fri Dec 2 04:59:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 630191 Delivered-To: patch@linaro.org Received: by 2002:a17:906:9c8c:b0:7c0:a5ce:226a with SMTP id fj12csp903265ejc; Thu, 1 Dec 2022 21:00:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf4dc307xIgb2Sn1trXmgRCqy0351exOL3uqa9qdrbTD01U89VCGRmduHexRiAY/sh5q2D3L X-Received: by 2002:a05:6638:34a1:b0:38a:2138:5d25 with SMTP id t33-20020a05663834a100b0038a21385d25mr416587jal.273.1669957220631; Thu, 01 Dec 2022 21:00:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669957220; cv=none; d=google.com; s=arc-20160816; b=x9kE0jS8CKppt0IAAwbpc++/w3OHBL/g5ZA1bFj8HcaLHWpMU6suahBsxD+9kfB7Mz jf6Pt/1W2iJgT+XdWnkvUW26aIFfsC4tAI1APbQmA4epLzjtkK/bKpH/ERbvj053CXvR Ttat8BYZ5RmwPzvt5LQ/QfAzvmYwdc4HODQMwvnL+/8Jx9AOrP6W4kbhTpwOj7nUToOf sO3M3JMoRoXmXBT9sFCyNTQdR7g3acgPifvKcK9/qGCF6r8nhzupunvlKN//Es3aDZcA ZrlUL60R8MLIUm0UlzW2Jl9zRsqcoR5B6su27dtuUTms1o2ul/PP8ypRjyS7Gh0pd6aZ LRsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=LpKwKuv6nmxPh7XEkrWYyb0202mdchBNzTeGK9wi7VA=; b=fAU2OTTMlPLibekXiKlxzUrP7mES7teqSqhNi52z3PczR6oK5CZfvFS8NzOAQmCOsl Rruap0LRx963foQrfRETInD45THue0a5mqNlWh4c8lSsyHkCy7uC5WaLgd04+Lm/xEKR E9XH/IkCocktzrPhdxs21sJKlapWNwUYgjYESK1y2YHsBWEhTW8t+sZPcc3KUg6LBCMB /SG+bB8d9rspZJg52ZHV0i195wrBx5MZt6VXPPsQsEmd5SrVDRuAqXqkzzHGoOA6klAy A0+TeWxihmD5khXJeXylAMW2+Ys/h52pmrvLJpB5Iah74iAnWHXCNrXrcPGah5aReMpW ifLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hc8H56E8; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id n38-20020a056602342600b006dc21cabdf9si4852256ioz.1.2022.12.01.21.00.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 21:00:20 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hc8H56E8; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A4A088544D; Fri, 2 Dec 2022 05:59:58 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="hc8H56E8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D4B6B85439; Fri, 2 Dec 2022 05:59:53 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4EB1785440 for ; Fri, 2 Dec 2022 05:59:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masahisa.kojima@linaro.org Received: by mail-pg1-x52b.google.com with SMTP id q1so3469885pgl.11 for ; Thu, 01 Dec 2022 20:59:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=LpKwKuv6nmxPh7XEkrWYyb0202mdchBNzTeGK9wi7VA=; b=hc8H56E8fidGN+QITYqO9v39/R9Um0Sf5jBRj3XnjOQaNjXeZf3F3jojcA2hT7nKPD bGV1AcGBrBmRVX2pk7TPDDQSZlYS1m8l/vGcq4GuWn+J2oqdrNsFQ1jaK7rt9wH3Tq5j 3E2qVIiqouowkR4ui//CVpFktOTjnmCnfSzNiycWkjjpmqE5qdD6SRfWa4nXAQ1et57A MBUuG1M+l3VNXUN6DsWVXbDWMfqMt5oOGg/uqkZSlDQEBJlJhwtuu0ezu0+2i2PNwIcC KEVyl6Vw89egFVbbtUReqXzQaAZx9cZ8FtB8RWJDBy2eQFdUiSpx8QkvI9I5UCiGpQQg piYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LpKwKuv6nmxPh7XEkrWYyb0202mdchBNzTeGK9wi7VA=; b=qI5IVbA2sw+HzFLmI359W5QPnUskFXX/E/tTr0UCHFx/MmU+MgByHPaK6X5746uEd+ BwwLoH0E4eRYnA3BobD822poMA4BN7eF17r1jFxGj293furnh11081vQ7SP031j74BNy cBqHGoQnQCHQAy7VQ49ppMovXNujdBEa8JdcEHC0balsRKfjt9gpHsAXlaRtEi94daaN g9lOqViUNISC+iENoJFTAGUVc1Trx1YP2AEtg+ox9Oxwqzs5n8SFzzqVRkNH6O0GZKF0 q8D1c0Ul8eYP5YDXVOdslPQTDgfq/GnYqC8TKheQZQG+r0VO+tn4VZCexEcXm4YMt4z7 7bIg== X-Gm-Message-State: ANoB5pnh7XtcmO6r6XfZ/725xa9ukdJtYaWN85b8fEdX26eRy4NEeuQ7 gQC4Z6bvbOlznlzk4xelFVoY7gr+TrFBJ7/l X-Received: by 2002:a63:f503:0:b0:470:4acb:1eb with SMTP id w3-20020a63f503000000b004704acb01ebmr43013890pgh.440.1669957190520; Thu, 01 Dec 2022 20:59:50 -0800 (PST) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id z27-20020aa7949b000000b00575fbe1cf31sm3234456pfk.67.2022.12.01.20.59.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 20:59:49 -0800 (PST) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Jerome Forissier , Masahisa Kojima Subject: [PATCH v3 1/5] eficonfig: fix going one directory up issue Date: Fri, 2 Dec 2022 13:59:33 +0900 Message-Id: <20221202045937.7846-2-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221202045937.7846-1-masahisa.kojima@linaro.org> References: <20221202045937.7846-1-masahisa.kojima@linaro.org> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean The directory name in eficonfig menu entry contains the '\' separator. strcmp() argument ".." is wrong and one directory up handling does not work correctly. strcmp() argument must include '\' separator. Signed-off-by: Masahisa Kojima Reviewed-by: Ilias Apalodimas --- No change since v1 cmd/eficonfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/eficonfig.c b/cmd/eficonfig.c index 97d35597a2..5529edc85e 100644 --- a/cmd/eficonfig.c +++ b/cmd/eficonfig.c @@ -488,7 +488,7 @@ static efi_status_t eficonfig_file_selected(void *data) if (!info) return EFI_INVALID_PARAMETER; - if (!strcmp(info->file_name, "..")) { + if (!strcmp(info->file_name, "..\\")) { struct eficonfig_filepath_info *iter; struct list_head *pos, *n; int is_last;