Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2551982ybl; Mon, 20 Jan 2020 05:10:56 -0800 (PST) X-Google-Smtp-Source: APXvYqyfXS0N+Tww6YZXlTXqrdGmg59GgZedn5nuRN7RMPVgiE5Mw4Eycaqy28QWnKi++6Hh/Rx6 X-Received: by 2002:aca:d507:: with SMTP id m7mr12176932oig.48.1579525855921; Mon, 20 Jan 2020 05:10:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579525855; cv=none; d=google.com; s=arc-20160816; b=T3kcrpKARea1oFZHjkXtdkqE8WKx1zIo3/px2MGxD2nagpjrPKNl4AeRWvmu0o7Hce z5LouiXX9+vzueeSef2eWRsGz+cKd0yUA8RuP5LXud1Yga7UtHQKIqwTjt8f3zeA2l6Z NemyVHgeCvx7rVe54U4TsiUgSv0vCTIvuYQhFfwzh7HVZcMhzRjX7DClmfcFaAqnELCD XqwS8VfcMtr9y4JBVtuYwnYzWmkwn2iTJTMaqIQyDeAGJ2clwf/Kz5aaIl/x87FaNfEJ yTVSxZq5yk6SA+cDtQLBbN/6Kj58kbHvcAOtBWJg+7P/koaJU0Yh4Y1N0kjfsyclVJYZ arUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:dkim-signature; bh=oVICxkwYE819T09jumS9b6kqZZVW9alGabNhw2Byv4c=; b=iy76l+lzdTZbnFXygDSFl32GsfjLEj+oUBtJ+LJZfgkSxV5u3K07n8Ocx9WTUgMOjB 7JdTYkWHE8pwOYKZvWqydeHesDblzyMuqtaaMH4ML89bOS1MKt3M0rmmFHGSwmqBrjgg KQzdF7Erq1+MDA+mUT0t21FfsRX6bN0n80ehkylfH3ODCUCoZF13enLTRXpYi8HgmhXI ayBNWMWd8QG4ky+xvFWRYsR8KKJeT8m49HXcma1ATSBynuC55symF0VMzXwkobpQvHX6 P+mRzt2hxRNDj16McZ1CkfTtcdhDdBf3x6GLb8P1u01CHNnI/n3zaLPA7uH0D06N0P56 IeQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bhX7yiQC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w68si18781826oia.223.2020.01.20.05.10.43; Mon, 20 Jan 2020 05:10:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bhX7yiQC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727740AbgATNGr (ORCPT + 99 others); Mon, 20 Jan 2020 08:06:47 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:48044 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727121AbgATNGr (ORCPT ); Mon, 20 Jan 2020 08:06:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579525606; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oVICxkwYE819T09jumS9b6kqZZVW9alGabNhw2Byv4c=; b=bhX7yiQC06ov8M3HpddvHv1pG1e/EwEZ6AzVoYP+YZaot0iUufBUXPWd1c8e7WTe+FmGBj HSllop26wd/fEU9wb3SCNorMgXZ+JGdZAJLmxDIbzeDNgMedZR+zw3NS3Awlkhlu2Oe42k tuHM1oxS0oGxA5+lE/ec2khu+6SZ1AE= Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-4-V7EBC7SaNvaVUPkGXNDtQw-1; Mon, 20 Jan 2020 08:06:45 -0500 X-MC-Unique: V7EBC7SaNvaVUPkGXNDtQw-1 Received: by mail-lj1-f197.google.com with SMTP id h23so7532718ljk.14 for ; Mon, 20 Jan 2020 05:06:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=oVICxkwYE819T09jumS9b6kqZZVW9alGabNhw2Byv4c=; b=H2c5dNfftvHyOY2Fz7KaShF5EgfVs6kFrN5zEJIKhcjMLQNE0E0texarxrbyHECZFP MnYuG0I4iMtschY4kviUCk0EWGdbfF+5K2q1tYSUn7I/lTq1rm1wy4eZe0YSTj74Jnxv SDCWWr46GLwnZMkX7wtfDFTMYZomy3BLo+xOYjog9jxpUFGKqtwX8sPUEnTrpMMUyqDt hfka9blsDmScwqs45ibrzzybAzVj9uTE+1PII6lVtndYgmmTkkPkrYJH1svPMAilVuEQ ON7EAIJmKLxlFgNs0mM6DJzzvmnrj9L4Yr1LW7rhai7lxNYM6ByiPGP6ZsYuuWb1qAd6 50rg== X-Gm-Message-State: APjAAAXqPg+F6o0h2VzgP8zmo06oUIfIbYoey/ZV2c3Xk+8uRmA6kq9I hj7lh7SwVnIJu+2Vtyz81ALPK9HzwYLmOdtPRsMg5NdtN+F/mPiEKof/FX/QR0o3EDumS62hsrI tb2L1LCQpNJyjd11LujxEG2oc X-Received: by 2002:a2e:9015:: with SMTP id h21mr13901690ljg.69.1579525603443; Mon, 20 Jan 2020 05:06:43 -0800 (PST) X-Received: by 2002:a2e:9015:: with SMTP id h21mr13901661ljg.69.1579525603114; Mon, 20 Jan 2020 05:06:43 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([2a0c:4d80:42:443::2]) by smtp.gmail.com with ESMTPSA id z5sm16825740lji.40.2020.01.20.05.06.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jan 2020 05:06:42 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 59E971804D7; Mon, 20 Jan 2020 14:06:41 +0100 (CET) Subject: [PATCH bpf-next v5 01/11] samples/bpf: Don't try to remove user's homedir on clean From: =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= To: Alexei Starovoitov Cc: Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , Doug Ledford , Jason Gunthorpe , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Shuah Khan , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kselftest@vger.kernel.org, clang-built-linux@googlegroups.com Date: Mon, 20 Jan 2020 14:06:41 +0100 Message-ID: <157952560126.1683545.7273054725976032511.stgit@toke.dk> In-Reply-To: <157952560001.1683545.16757917515390545122.stgit@toke.dk> References: <157952560001.1683545.16757917515390545122.stgit@toke.dk> User-Agent: StGit/0.21 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Toke Høiland-Jørgensen The 'clean' rule in the samples/bpf Makefile tries to remove backup files (ending in ~). However, if no such files exist, it will instead try to remove the user's home directory. While the attempt is mostly harmless, it does lead to a somewhat scary warning like this: rm: cannot remove '~': Is a directory Fix this by using find instead of shell expansion to locate any actual backup files that need to be removed. Fixes: b62a796c109c ("samples/bpf: allow make to be run from samples/bpf/ directory") Acked-by: Jesper Dangaard Brouer Signed-off-by: Toke Høiland-Jørgensen --- samples/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index 5b89c0370f33..f86d713a17a5 100644 --- a/samples/bpf/Makefile +++ b/samples/bpf/Makefile @@ -254,7 +254,7 @@ all: clean: $(MAKE) -C ../../ M=$(CURDIR) clean - @rm -f *~ + @find $(CURDIR) -type f -name '*~' -delete $(LIBBPF): FORCE # Fix up variables inherited from Kbuild that tools/ build system won't like