From: Wei Yang Date: Fri, 29 Dec 2023 03:06:51 +0000 (+0000) Subject: scripts/tags.sh: use more portable -path instead of -wholename X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f9fefa985d2e96db81954ae3b1feb09d69357f28;p=linux.git scripts/tags.sh: use more portable -path instead of -wholename According to the manual, -path is more portable than -wholename. Also for consistency, let's use -path here. Signed-off-by: Wei Yang CC: Guennadi Liakhovetski CC: WANG Cong CC: Michal Marek Link: https://lore.kernel.org/r/20231229030654.17474-1-richard.weiyang@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/scripts/tags.sh b/scripts/tags.sh index cb96961349aaf..be7970b8b88ad 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -50,7 +50,7 @@ fi find_arch_sources() { for i in $archincludedir; do - prune="$prune -wholename $i -prune -o" + prune="$prune ( -path $i ) -prune -o" done find ${tree}arch/$1 $ignore $prune -name "$2" -not -type l -print; }