Skip to content

Commit f9fefa9

Browse files
RichardWeiYanggregkh
authored andcommitted
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 <richard.weiyang@gmail.com> CC: Guennadi Liakhovetski <g.liakhovetski@gmx.de> CC: WANG Cong <xiyou.wangcong@gmail.com> CC: Michal Marek <mmarek@suse.cz> Link: https://lore.kernel.org/r/20231229030654.17474-1-richard.weiyang@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 4f3f263 commit f9fefa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/tags.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fi
5050
find_arch_sources()
5151
{
5252
for i in $archincludedir; do
53-
prune="$prune -wholename $i -prune -o"
53+
prune="$prune ( -path $i ) -prune -o"
5454
done
5555
find ${tree}arch/$1 $ignore $prune -name "$2" -not -type l -print;
5656
}

0 commit comments

Comments
 (0)