Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7770573ybl; Thu, 16 Jan 2020 05:25:01 -0800 (PST) X-Google-Smtp-Source: APXvYqxedgLw28ZfqvkMjaXXB9rPjjTbMG5KixWGJOlYASZ8HMkfbKKE7iLKBJL1Sysk7UTyAa0Z X-Received: by 2002:a05:6830:1555:: with SMTP id l21mr1817601otp.41.1579181101154; Thu, 16 Jan 2020 05:25:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579181101; cv=none; d=google.com; s=arc-20160816; b=0q1Xk+/I04mSD3x3LOE2Zk8uNmg7HlSBNB4o0qDW8/3muknCkVAzcrzVTOPfwFExo4 I6MHcY+AFWONMNTU8BfRNbTw7GH9LpAIWAwOlVh98EajqFq76Mi1q2VdW9Pls7cVGX3c jBO4TYCMnUQhjXXAPG2u79nbnf8FKyeR8rOJGqn78QxP7nv2TNkEkxGyIOucDRiI682r Pi2UATXZtaEbIEB3fGUVczxmoPJXjsVAWfU5xaulf8DyOxp7uDDmB0F6lLa5d7hTaIT6 xnz5mS3QPTR88FJItnLq2pPpsjvf2y+esKEKJaVHgH/nG4uUSKg4cLHiyId9ykKGK3M+ thEQ== 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=02mIVHkS20kSZN44ZO+YzL7Ryn6s9cuRXBnk9rBrLD/GpwMW0oYX3O0aPmeqTVJZJ8 LQr5fdFQ5jXW1BxMcvWBfW6mH5tuO2dvzfDp6+c9RqMmPOfPAmuSS++u0ej+DPXphJNr nN1QM7EfzGtlFbpPq9ty07rYuztIh1DM4OrfkT+XCLYf9ynjq2hEVY4tyVJ2zgR27Yja X0SLyMTO2hnvDf8qVB5vlQhJG/np+MFSjB3aL/xogiA1UEZw9q9QuQL1yu7Hz6RntMsC ubm/z6u1TqHx8/SQP5yF+MIhEB1blKKolHlkR4X+28+D27dZmU9jtx+reySGHEBxEiUp 0u0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BGMS7Qso; 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 l78si11693863oih.182.2020.01.16.05.24.48; Thu, 16 Jan 2020 05:25:01 -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=BGMS7Qso; 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 S1726942AbgAPNWS (ORCPT + 99 others); Thu, 16 Jan 2020 08:22:18 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:55792 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726406AbgAPNWS (ORCPT ); Thu, 16 Jan 2020 08:22:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579180937; 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=BGMS7Qso2vvxNKbeNU5Isy3YUTyy3KLha9b4tf5sU9DyV0RHLPzE6DftI3CI3oV+53GY25 PsArIUENlTxqfd2HCRWFSENc9MP18rrb0HVWN0s6vdGQQQvxrhpMaVaj/1zqq9PSutAXGB p7gTpwWvD/H50XNi0dRjglYtwEYss/8= 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-315-WiacInimO_KQmh_2ltrYTg-1; Thu, 16 Jan 2020 08:22:15 -0500 X-MC-Unique: WiacInimO_KQmh_2ltrYTg-1 Received: by mail-lj1-f197.google.com with SMTP id o9so5150709ljc.6 for ; Thu, 16 Jan 2020 05:22:15 -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=EkINi+l0wwCURS7GJZPGj9w8br9O+DxcFyvX35jJP4D/wA3ejGociXEnR72b04VZ2w gV5hxTtJYzs3rdk66Bduh6Akyz5j14GNR5YNuweixKIQY2eqdreE2DHzb2r9JD71HFX/ kMVUmVhu5F6uOBuBSDk4uJ6ERLtTVHPgHjEjOihoKK8F2oNBZMUlL8biPnqjy4eGrTlV P3y/bu9BrZGMdZxkI6iaV4TvIUTqSRNvYbM1askXCoanLPinjqE93Nz9nfeLKVxF6u4+ tUEwkFgkenvN3GLZMm9AjQ/AML9VuU5eBG66VMEhnHgzGQ4lBIlFFlQNIGCy2SlH74Ej nvYA== X-Gm-Message-State: APjAAAVclcWYJmyTKlnmj4Lk7gvdWL+pM7wwHihp7wj3N3D7xbj5G+92 5vvS85VfHZf2AlxQD3DOfTGIdjKuWZHdofR+X+C30uCE0erT7z5PyD0gI7W4U7ip0oaD7yHRqX9 IYqc+Ss0bunHH4hFV9zx7qogx X-Received: by 2002:a2e:b007:: with SMTP id y7mr2286043ljk.215.1579180934266; Thu, 16 Jan 2020 05:22:14 -0800 (PST) X-Received: by 2002:a2e:b007:: with SMTP id y7mr2286032ljk.215.1579180934124; Thu, 16 Jan 2020 05:22:14 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([2a0c:4d80:42:443::2]) by smtp.gmail.com with ESMTPSA id f16sm10703433ljn.17.2020.01.16.05.22.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2020 05:22:13 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id D9E2F1804D7; Thu, 16 Jan 2020 14:22:12 +0100 (CET) Subject: [PATCH bpf-next v3 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: Thu, 16 Jan 2020 14:22:12 +0100 Message-ID: <157918093278.1357254.3453847369567754938.stgit@toke.dk> In-Reply-To: <157918093154.1357254.7616059374996162336.stgit@toke.dk> References: <157918093154.1357254.7616059374996162336.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