From patchwork Fri Jan 17 13:36:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= X-Patchwork-Id: 11339065 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 92F90184C for ; Fri, 17 Jan 2020 13:37:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6829E2073A for ; Fri, 17 Jan 2020 13:37:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="NBgagi4v" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727504AbgAQNgo (ORCPT ); Fri, 17 Jan 2020 08:36:44 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:43665 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727026AbgAQNgn (ORCPT ); Fri, 17 Jan 2020 08:36:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579268202; 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=NBgagi4vaVDraEVb5z2UKdz55Ow06HL4VwzW9qJzYRjo+al8258qd5DgxWAka0djOH1o33 gBg7BWxeCJNHe9I/wpip7Qt8epB/JM4qsS/P3oBPsHI/DbhRQfLFiUxUbBw9Ts8nR3zxBe Ibl6F4CbmqlBoHVRrH5eGjfL1ZTplOM= Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-153-m_XWg5nwOqm5xqzmQSt-FQ-1; Fri, 17 Jan 2020 08:36:41 -0500 X-MC-Unique: m_XWg5nwOqm5xqzmQSt-FQ-1 Received: by mail-lf1-f71.google.com with SMTP id d6so4394645lfl.3 for ; Fri, 17 Jan 2020 05:36:41 -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=j3ZXQCwHJiQpMVX7wP1DF+v1jcRSkOaOoaBihdFezqbjMWrTHV0q7P/LGn3ZSNaXpq GFeMbV2eQNB31tsmL0k6tC+HDb8J5wWqH9KsdrvNub+WOGwiA0f6LiIgVtbu9hT1dguW tiJEfh3hP4VhygzPbeTjdiHMcc9l4bTCSIgA+Z49IBgoP36I/nYZ1/cBjxGSkValIGmv txZhemhVKWqWnUHUhMpeCGhfJ7vTAwsjPQVh8UH21YLP1UpL5OcGLznunfRtf1k8rZdu ynEFiw/DzTfQSSQ/eTTJUiksBXxRqZphfwWmbIEYtT+F/+nZ4sXdV7pr3vbArAnzdIsI aPew== X-Gm-Message-State: APjAAAU7qXyptX56I9P0Pg88HL+LUeAA5qXlAoYpGL9VwJbf0nuHtSKt sM5anQgsWSqT0frKCMaJqZ037yFJURkpVAKtoYhz3OXkIKX47oSiPFp2VUE2mOKzNEmbAxzo2iA mQqAH5oZ/la4OUwhLQwKB/A== X-Received: by 2002:a2e:3504:: with SMTP id z4mr5730207ljz.273.1579268199902; Fri, 17 Jan 2020 05:36:39 -0800 (PST) X-Google-Smtp-Source: APXvYqylN+0GVMNBaohq3jT5bbBFBEpPomA9QCEg65LVnS53cMW7Nhrc9Od5tPVFSrsyp0I8uvYr0A== X-Received: by 2002:a2e:3504:: with SMTP id z4mr5730180ljz.273.1579268199696; Fri, 17 Jan 2020 05:36:39 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([45.145.92.2]) by smtp.gmail.com with ESMTPSA id w1sm11999480lfe.96.2020.01.17.05.36.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jan 2020 05:36:39 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 317BF1804D7; Fri, 17 Jan 2020 14:36:38 +0100 (CET) Subject: [PATCH bpf-next v4 01/10] 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: Fri, 17 Jan 2020 14:36:38 +0100 Message-ID: <157926819814.1555735.13181807141455624178.stgit@toke.dk> In-Reply-To: <157926819690.1555735.10756593211671752826.stgit@toke.dk> References: <157926819690.1555735.10756593211671752826.stgit@toke.dk> User-Agent: StGit/0.21 MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@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