diff options
author | 2020-01-20 14:06:41 +0100 | |
---|---|---|
committer | 2020-01-20 16:37:45 -0800 | |
commit | b2e5e93ae8af6a34bca536cdc4b453ab1e707b8b (patch) | |
tree | 16c28b8b1cd34c52fce69fa4de8574e224fcbc7b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | selftests/bpf: Skip perf hw events test if the setup disabled it (diff) | |
download | linux-dev-b2e5e93ae8af6a34bca536cdc4b453ab1e707b8b.tar.xz linux-dev-b2e5e93ae8af6a34bca536cdc4b453ab1e707b8b.zip |
samples/bpf: Don't try to remove user's homedir on clean
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 <toke@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Link: https://lore.kernel.org/bpf/157952560126.1683545.7273054725976032511.stgit@toke.dk
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions