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 <[email protected]> CC: Guennadi Liakhovetski <[email protected]> CC: WANG Cong <[email protected]> CC: Michal Marek <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
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)