Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3690359ybv; Mon, 10 Feb 2020 04:46:38 -0800 (PST) X-Google-Smtp-Source: APXvYqxeqvaZC9dnrV9WrkrL0O/d4L5R7FPOlo9tbXZ180c9pGcCp9ufs9CbEwVNrkGARXBixAKt X-Received: by 2002:a05:6808:a8a:: with SMTP id q10mr691246oij.66.1581338798574; Mon, 10 Feb 2020 04:46:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581338798; cv=none; d=google.com; s=arc-20160816; b=NPWBTo8W4jIZB57WPkpARV7+QyMFk3gtlWpq0BYI0q9BLSwQ9AhU+YkZj2gYHWVzrh dgGmBe4ofSZBox5k4IgBr+wyqQzVcdFEwosKOp3qEtb9qBTLF0tghKc+TlR3Kry2JqOH DvtjhyF4FGMquQqrBHFGHGw+KMCUnGHgT2Pnv18nWSsQGobPH9JE775d7Cj3co8D0Vpb HkC4VnuBOJr+7Vpx8lP8qWTVQ8wZDPkmXrTyqtTfMFpyTL1uONn0a01o910a9TPdplIb Moh4zZYisHNusRdMAhSx1mr1OL4lY7AfXvGxwsQhHjlk9rckxzaB+Jzr3DZyrR+ZuO1F RD4w== 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:subject:cc:to :from:dkim-signature; bh=xp5V5ERatVUDqst9r7VsrD2cukcLTYd4UvZmqvHuMdw=; b=pm3kw1dYRHk0hQX7mdXfcucOVX6+XH3Q98KZnM2IgA43CixAuNScTLjK1T5fMPNpY6 JreAQGkERxG1U5SwxmPtumJY9p8RVRCXw9ZocNADuoeLEMEP2BEhfYXbJ4ENqUKA3OfC fVJbQS0BirbO1JT0oRwxjiCGv4A4XM5bilPb3Uef3db9UYlMxyOV2xPisdrXUBIoQ/bq 17pen/mriMHssekmeOfEOe1kwamut5VIL5OKawlCQ7AolAVZCkBsVFenua+BHaeq9/sS Gitde1xiYC6LWhRMCSdir0LXzAF8dIi7VKFEaMolKN2dFBvRBortEYGTD0QTN4Y9CWvh cK4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AET66hls; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p14si151658ota.71.2020.02.10.04.46.27; Mon, 10 Feb 2020 04:46:38 -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=@kernel.org header.s=default header.b=AET66hls; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730786AbgBJMpM (ORCPT + 99 others); Mon, 10 Feb 2020 07:45:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:42070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728510AbgBJMk5 (ORCPT ); Mon, 10 Feb 2020 07:40:57 -0500 Received: from localhost (unknown [209.37.97.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 72AA42080C; Mon, 10 Feb 2020 12:40:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581338456; bh=cUIYCtFWKGJvtPYj/tLz2e0nFzbYARfaNKSPNYKWe4Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AET66hlsC7bdqrOJansa4RSmz86qIXgFsseFQpn1pFboVDVTfuKkDefdgRAuVyC/D cvzcDep1eS6V2OCpBz46CVCwE2s5mV6qRmOlLOVJrlOHFEKbk/hy27UMuPAgFZOWNB 8qbQ5cquc+C/X7fyn0bUMh6oYNGq8klsUyUkYarI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= , Alexei Starovoitov , Jesper Dangaard Brouer Subject: [PATCH 5.5 167/367] samples/bpf: Dont try to remove users homedir on clean Date: Mon, 10 Feb 2020 04:31:20 -0800 Message-Id: <20200210122440.293842798@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200210122423.695146547@linuxfoundation.org> References: <20200210122423.695146547@linuxfoundation.org> User-Agent: quilt/0.66 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 commit b2e5e93ae8af6a34bca536cdc4b453ab1e707b8b upstream. 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 Signed-off-by: Alexei Starovoitov Acked-by: Jesper Dangaard Brouer Link: https://lore.kernel.org/bpf/157952560126.1683545.7273054725976032511.stgit@toke.dk Signed-off-by: Greg Kroah-Hartman --- samples/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/samples/bpf/Makefile +++ b/samples/bpf/Makefile @@ -251,7 +251,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