Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6607976ybl; Wed, 15 Jan 2020 07:22:40 -0800 (PST) X-Google-Smtp-Source: APXvYqxeDab8kiGQ4r8z0B7x+qGUk6ToR6YC9xNs6Pxq6IwEIa/WeXYDGDhejHduzTK8eIeONqy0 X-Received: by 2002:a05:6830:1d6e:: with SMTP id l14mr3097788oti.32.1579101759875; Wed, 15 Jan 2020 07:22:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579101759; cv=none; d=google.com; s=arc-20160816; b=cq6i3S9E1j5MOQhokMFh/fGi8UOqkJe5xPctVOIBzT1LkpfL9blTKjFYhPLeGBA3/p SHwZaGGmQazGPiEEGr38W1AlT8Wziwp8SxzMgWn+YWqCRbeYpUHyNsypCXSqIa/gIfYG i0OAS3AQAZqKq6h4CpwUVatBNFIWmNNtWYnKRh2aDBP01JGNqthCQpcFVjBV6MpDkuip b2ufc714me6U0exrT5u0rLztBZoidiYFExWVNSSFgTiEjjNCczpWij5EL123RGTbTtTm WPD7V653nnCANpuvQ77YsgzX9NAmE1hEwHpXRAvA07r1OAz22CbAdJWSFap3gB6OFnR9 e4cA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=zTA4sx+gNFDojMXAsEt7yLk4iNXaE/P+y/1BDCCWUNA=; b=pR8rBnGSKQW36d2Uphe7H3uHmnN4ozoXCq4cdleo8xC3A2GuLWsDDK1cWEk/1rZmwg aCoOj3DDGpaJUfkCJUkWz2dnwDKxQE5u52FZghddRsfL5n9MKdFXuOP78EPK7V+Lytmc 0XReYGRzJgw4rKiJEZe7qCP9IZJEoZ7OvsPnHulk1xeC4caFfY2T6oRk3Jj8JlHQi8V6 lffs+iGOR5Y/9/jjtPTlXfeQdJKJItj93/ASIKnMY2uat/kfX+SFUVEb4o1TGZZxCBFg 4LxbjTtTWf7xZKm8VCHyZPQ7AqhYI0AG9irox+Dsr4+YtJmbOh4jklpsen9BMJSMDKZp Gg2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KyBFHK4t; 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 r10si10074659otn.241.2020.01.15.07.22.27; Wed, 15 Jan 2020 07:22:39 -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=KyBFHK4t; 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 S1729045AbgAOPVb (ORCPT + 99 others); Wed, 15 Jan 2020 10:21:31 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:52555 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729011AbgAOPVa (ORCPT ); Wed, 15 Jan 2020 10:21:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579101689; 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=zTA4sx+gNFDojMXAsEt7yLk4iNXaE/P+y/1BDCCWUNA=; b=KyBFHK4tuz2NBRrLscXv585YgCF8DrI2QkjiWDMar0tRgLOsMwlDWkS1yh8EkOANG6ngXN HE9S0Yt5btwoRW6zqb+wzU3118KuE8MsAhRxYpwFIu7FhrK56IM9l2CVPiZ7H+bSZ4zTH2 90GifVtPXeXQYf5wuGzlc/mVVl8l2q8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-171-YiC0dQjHOfKz--2joi_dgQ-1; Wed, 15 Jan 2020 10:21:25 -0500 X-MC-Unique: YiC0dQjHOfKz--2joi_dgQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9A3A71136DFF; Wed, 15 Jan 2020 15:21:19 +0000 (UTC) Received: from carbon (ovpn-200-25.brq.redhat.com [10.40.200.25]) by smtp.corp.redhat.com (Postfix) with ESMTP id D09DE196AE; Wed, 15 Jan 2020 15:21:07 +0000 (UTC) Date: Wed, 15 Jan 2020 16:21:05 +0100 From: Jesper Dangaard Brouer To: Toke =?UTF-8?B?SMO4aWxhbmQtSsO4cmdlbnNlbg==?= Cc: Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , Doug Ledford , Jason Gunthorpe , "David S. Miller" , Jakub Kicinski , 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, brouer@redhat.com Subject: Re: [PATCH bpf-next v2 01/10] samples/bpf: Don't try to remove user's homedir on clean Message-ID: <20200115162105.51c2847a@carbon> In-Reply-To: <157909756981.1192265.5504476164632952530.stgit@toke.dk> References: <157909756858.1192265.6657542187065456112.stgit@toke.dk> <157909756981.1192265.5504476164632952530.stgit@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 15 Jan 2020 15:12:49 +0100 Toke H=C3=B8iland-J=C3=B8rgensen wrote: > From: Toke H=C3=B8iland-J=C3=B8rgensen >=20 > 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: >=20 > rm: cannot remove '~': Is a directory >=20 > Fix this by using find instead of shell expansion to locate any actual > backup files that need to be removed. >=20 > Fixes: b62a796c109c ("samples/bpf: allow make to be run from samples/bpf/= directory") > Signed-off-by: Toke H=C3=B8iland-J=C3=B8rgensen Kind of scary make clean command! Acked-by: Jesper Dangaard Brouer > --- > samples/bpf/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > 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: > =20 > clean: > $(MAKE) -C ../../ M=3D$(CURDIR) clean > - @rm -f *~ > + @find $(CURDIR) -type f -name '*~' -delete --=20 Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer