From patchwork Fri Feb 4 16:47:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 5075 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4Jr1h45g68z3xHT for ; Fri, 4 Feb 2022 16:48:36 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4Jr1gT2PP4z5Rs; Fri, 4 Feb 2022 16:48:05 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Jr1gR4ZGTz30b1; Fri, 4 Feb 2022 16:48:03 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4Jr1gM4k8lz32MY for ; Fri, 4 Feb 2022 16:47:59 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4Jr1gL67QTz4n5; Fri, 4 Feb 2022 16:47:58 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1643993278; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LfEAhlFPylNlK+Z+rY/dpSXF18lC5Jsh46X8Djg6XXY=; b=KJr5tEGIQ0NmoleGYIOi4ClfZ8umM/9mR7oeezUWDWqPoouqzZthKQJJYRlvviP0lx5Daa Ii9YmW044oiwG8AA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1643993278; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LfEAhlFPylNlK+Z+rY/dpSXF18lC5Jsh46X8Djg6XXY=; b=VinMPZTjdFxZVAoTQ4LwolkPKDVuD58Q76VNPkdRhKK/JhbamWoMCbv38j7Ub6RR1hgrdj rEJkRDf40n+ypnUh6wpg8DqRi1HUvHyKTdbvplKbYWKgLBWCNemb6gjmsRcmTyYQjbzIOW ODWH5x6AwlTuuF7pywSfPRhzGmpwknUJ2F4BERcT3LPSenRcwOvljAuoWrd6HfCDI7hMu7 NyoXAAN5LnuPq7j2itUQECOrNtb1EnSZB6Y6Qbv9e+F4uec6s5doVg0XdaHxp1qVnpG+07 4zosX945RjMXHjcG2djEske+Jzg294UnyP6uZZduZkKWCYlGCtDFQIUbKIctyQ== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 22/28] stripper: Actually use the path we want Date: Fri, 4 Feb 2022 16:47:42 +0000 Message-Id: <20220204164748.315559-22-michael.tremer@ipfire.org> In-Reply-To: <20220204164748.315559-1-michael.tremer@ipfire.org> References: <20220204164748.315559-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Michael Tremer --- src/stripper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stripper b/src/stripper index d1739b28c..8689b34de 100755 --- a/src/stripper +++ b/src/stripper @@ -61,7 +61,7 @@ function _strip() { } for path in ${paths[@]}; do - for file in $(find / -xdev "${excludes[@]}" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) 2>/dev/null); do + for file in $(find "${path}" -xdev "${excludes[@]}" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) 2>/dev/null); do _strip "${file}" || exit $? done done