Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6536917ybl; Wed, 15 Jan 2020 06:19:02 -0800 (PST) X-Google-Smtp-Source: APXvYqySC+K/K/JlRHmlMbRIdSRHq0we5u4wvWeDf/O1nZE7eqWtriQH13XspZgtpVjgXttjUF6p X-Received: by 2002:aca:4c07:: with SMTP id z7mr21519738oia.74.1579097942635; Wed, 15 Jan 2020 06:19:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579097942; cv=none; d=google.com; s=arc-20160816; b=pE5J2r2ODAAl0k2Bj0n+30g+06BF3lfJbHuIBFX79aZNcIY5SYhgdeCSehkIMyMI1/ yWhD15/ss1n+y+BhYCNnNFflLBZXeQ4aszv0JIFcFTZHsc2ui2XXtqnkTuBf3bGGgVoW uqJjwzo0XtxRHBhZ8Y9un/uG/XS23L2UPB6wI+yKtnzVQ2qo7eKLuK6m1bpHLyEcMXvL 8gJkP0cBDYGkORlbP4ouCRcFcQlRUBDfsAb36F1Rk7bBHlfX45AKo6JXqWE6NaKzBoPe cCDCrG6ulUpBKrwSExcl2kl58BibdMQSecHRUE2+XWNddS3nD3eShAcyUEb7kieAmUpM +Pdw== 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=5kZC7agzU6ERgvosRoOEsIt+SJXOB994svdT5EEHwwQ=; b=LjWwOA6wcpuT492YxeZ4kdlbPD03s1+uwnoH0iuG7jtb35P7dD1oeSj8fEM/09IqmV OGEoH8XjmBa6pqKYbAuzAif6+HCkOch/33mvXgkC6oHSe7OCQjD1tzeq71R020HEw81o ZvcvMjdRtnFgNVEQCV79TI5LEbgdHeTBzlsArJAXwMMuZZFxE/1o6dc85n/0iAUMdOkq A34sM2fDPDbAUQzdkIF5GLGcGratXaSPrexmhr4vJIIAObFTn7mcWfQGADpu5oVaVtl2 onCacmOhUWDwsdxRvvPLbrilP8Pm7yRHeLhBOMtpBt0OmJJ8ugU0b+W9NxkhamxhfHKZ t7Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UTnR3IGZ; 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 a7si10722582otp.284.2020.01.15.06.18.50; Wed, 15 Jan 2020 06:19:02 -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=UTnR3IGZ; 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 S1729413AbgAOOQW (ORCPT + 99 others); Wed, 15 Jan 2020 09:16:22 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:28715 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726501AbgAOOM4 (ORCPT ); Wed, 15 Jan 2020 09:12:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579097574; 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=5kZC7agzU6ERgvosRoOEsIt+SJXOB994svdT5EEHwwQ=; b=UTnR3IGZ0XZql1BQOK2y2d3I3WZdNg1U24+Lzd0fDR9QWyfwvGtY9stnJ64uvhRGzrLQJ3 tnC6QYi2JXV7Fm6wnnKhR3uNPhYJjz1KDN+kmDdYenQleanBeuEXc7TyYLyIyIf0b+Gk2E 3j38/fNPgz2obDBG9O/mLn6K0PMgSfk= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-166-3Xvp2WlrM3G7XJa-SzgOqw-1; Wed, 15 Jan 2020 09:12:53 -0500 X-MC-Unique: 3Xvp2WlrM3G7XJa-SzgOqw-1 Received: by mail-lj1-f200.google.com with SMTP id j23so4189910lji.23 for ; Wed, 15 Jan 2020 06:12:53 -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=5kZC7agzU6ERgvosRoOEsIt+SJXOB994svdT5EEHwwQ=; b=XmXUmvMCrNMlUVo1K5JXTsRXsRwTazmhq1FkeJ1GchBX/DzGlUguNwnvh6BUYNO/9m chKjbHbELGIYlPOpRGW+m2mGIo4qVFc+p7EjRh6qT8yErJskcGgsYiuxzsZEXFNYMZQz F5hQWZxw/9jU8spU9v/oI1D0AORN2UWyoVAN8ewByZf+uvMSt31uUGtI/fsxaRRbKV2l o5s37iTXhLiFohmA6s8Unk6y6Eh+dWxZ1xxavAkJjvm7meUp5DZIWItznzm2ASsIy+0H YRzd1fj2fHu7TvGwkkVA9a1AczU/Rzys1WxQkCOLf6s+PlTYe9wxM+EVR2XgNn4vXlEc IMXQ== X-Gm-Message-State: APjAAAX1zCpsNtgzP2/N1g+nAzQGOPmeSnMDN2kk9B06pExrhoz/JmQ9 mJAN36PPkCCLxkvjIZAeUJGsujatQVXDYIeDfAYWyO04O8znXyFGnSX2xo2YH5cHtStz/fDAaFF oWvRyGQTLyhBzJQXy3BLCcNGB X-Received: by 2002:a05:651c:2c7:: with SMTP id f7mr1780358ljo.125.1579097571918; Wed, 15 Jan 2020 06:12:51 -0800 (PST) X-Received: by 2002:a05:651c:2c7:: with SMTP id f7mr1780322ljo.125.1579097571478; Wed, 15 Jan 2020 06:12:51 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([2a0c:4d80:42:443::2]) by smtp.gmail.com with ESMTPSA id m21sm8930987lfh.53.2020.01.15.06.12.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jan 2020 06:12:50 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id D8D8E1804D7; Wed, 15 Jan 2020 15:12:49 +0100 (CET) Subject: [PATCH bpf-next v2 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: Wed, 15 Jan 2020 15:12:49 +0100 Message-ID: <157909756981.1192265.5504476164632952530.stgit@toke.dk> In-Reply-To: <157909756858.1192265.6657542187065456112.stgit@toke.dk> References: <157909756858.1192265.6657542187065456112.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") 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