summaryrefslogtreecommitdiff
path: root/test.bash
diff options
context:
space:
mode:
Diffstat (limited to 'test.bash')
-rwxr-xr-xtest.bash3
1 files changed, 1 insertions, 2 deletions
diff --git a/test.bash b/test.bash
index 266a875..091f0ac 100755
--- a/test.bash
+++ b/test.bash
@@ -85,8 +85,7 @@ if grep -R "panic(" ./*.go internal ; then
fi
# All functions from the commit msg in https://go-review.googlesource.com/c/go/+/210639
-if grep -R -E 'syscall.(Setegid|Seteuid|Setgroups|Setgid|Setregid|Setreuid|Setresgid|Setresuid|Setuid)\(' \
- ./*.go internal ; then
+if find . -type f -name \*.go -print0 | xargs -0 grep -E 'syscall.(Setegid|Seteuid|Setgroups|Setgid|Setregid|Setreuid|Setresgid|Setresuid|Setuid)\(' ; then
echo "$MYNAME: You probably want to use unix.Setgroups and friends. See the comments in OpenatUser() for why."
exit 1
fi