diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-01-04 13:59:53 -0600 |
---|---|---|
committer | Eric Sandeen <sandeen@redhat.com> | 2018-01-04 13:59:53 -0600 |
commit | 128491c39f86fe0eb6ff7e99e3d1241a9555e865 (patch) | |
tree | 99b6d04f3ab5d216137443498f125ee51c577874 | |
parent | 532d03d551ffc70644832cb4f9a64b941e148f56 (diff) | |
download | xfsprogs-dev-128491c39f86fe0eb6ff7e99e3d1241a9555e865.tar.gz |
find-api-violations: fix a broken grep pattern
One of the grep patterns in find-api-violations is mistaken for a
(broken) range specifier when LC_ALL=C, so fix it to work properly.
This was found by wiring up the script to xfstests.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
-rwxr-xr-x | tools/find-api-violations.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/find-api-violations.sh b/tools/find-api-violations.sh index c2be4c5647..3b976d3880 100755 --- a/tools/find-api-violations.sh +++ b/tools/find-api-violations.sh @@ -10,7 +10,7 @@ tool_dirs="copy db estimate fsck fsr growfs io logprint mdrestore mkfs quota rep # Calls to xfs_* functions in libxfs/*.c without the libxfs_ prefix find_possible_api_calls() { - grep -rn '[[:space:],-(]xfs_[a-z_]*(' $tool_dirs | sed -e 's/^.*\(xfs_[a-z_]*\)(.*$/\1/g' | sort | uniq + grep -rn '[-[:space:],(]xfs_[a-z_]*(' $tool_dirs | sed -e 's/^.*\(xfs_[a-z_]*\)(.*$/\1/g' | sort | uniq } check_if_api_calls() { |