From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B239B138359 for ; Wed, 21 Oct 2020 00:24:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E0984E0A6D; Wed, 21 Oct 2020 00:24:06 +0000 (UTC) Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D7E95E0A6D for ; Wed, 21 Oct 2020 00:24:06 +0000 (UTC) Received: by mail-pl1-f193.google.com with SMTP id r10so293189plx.3 for ; Tue, 20 Oct 2020 17:24:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cNTPyK7X/hLpYDFwXsTWF5zzAr2DKrhGBchnis1VuDo=; b=uKEvvIdEUkoyIQFAbQVik4oLlrgM2NMiyed8mqHprZNGYmAVLz/GHW5KCdpDTGdZ+Q DrZlBHuvrRJyOotcqzVh/T6Tq7XNKGX6McrvVvm9sMQji7p1dcKYorbYOaEQyHzW1/9Q tgUAtEZZ8qDtHIQz9eYZxxPBd+JeXiB/WUAOtc4hdgb/jeFWRlUwpRRMLSiP2Ea2yjoX TtyCeh2AY8KglO9Cc2eukMkeOHg9kXS6kaB89pURcjOybtAZxcPHLmjZ9QoWNvG90vNf yiJfA7CxnoCeEmrYwxaKXPTX+NAOb5zrv7mMMoJYcr+1ol+Kao9xBhhSRhlPF5Fen1B7 IkTg== X-Gm-Message-State: AOAM532/01EEKRyYry/PL4QfY4/jjksIIe3xIVb1AvImrw1bnNbcO5zm XrZYc7uu2PgzCpDC75YbnmhDuVNQ13oitQ== X-Google-Smtp-Source: ABdhPJwU/ERrmZ/0B7Wm9XSQx2oHo3OoeNOElAuMdmPMCPKuKJWQaJjt34Hnht2myrJ2Ee/O9THw1A== X-Received: by 2002:a17:90a:d082:: with SMTP id k2mr604288pju.195.1603239845589; Tue, 20 Oct 2020 17:24:05 -0700 (PDT) Received: from localhost ([108.161.26.224]) by smtp.gmail.com with ESMTPSA id bf12sm248644pjb.17.2020.10.20.17.24.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Oct 2020 17:24:04 -0700 (PDT) From: Matt Turner To: gentoo-catalyst@lists.gentoo.org Cc: Matt Turner Subject: [gentoo-catalyst] [PATCH 05/37] catalyst: Sanitize variable kernel name before giving it to bash Date: Tue, 20 Oct 2020 17:23:12 -0700 Message-Id: <20201021002344.378131-5-mattst88@gentoo.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201021002344.378131-1-mattst88@gentoo.org> References: <20201021002344.378131-1-mattst88@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 02f1b9fb-cf21-4de3-87db-cc0f02af4d51 X-Archives-Hash: ce5cb075518e43235e84a5f5d3b06be7 Signed-off-by: Matt Turner --- catalyst/base/stagebase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py index 1ccc9f04..ffcc211c 100644 --- a/catalyst/base/stagebase.py +++ b/catalyst/base/stagebase.py @@ -1504,7 +1504,7 @@ class StageBase(TargetBase, ClearBase, GenBase): mynames = [mynames] # Execute the script that sets up the kernel build environment cmd([self.settings['controller_file'], 'pre-kmerge'], env=self.env) - for kname in mynames: + for kname in [sanitize_name(name) for name in mynames]: self._build_kernel(kname=kname) self.resume.enable("build_kernel") except CatalystError: -- 2.26.2