From 7307de30c33893a33e97ae0336ee00eeeadf4c72 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Fri, 20 Aug 2021 12:18:11 -0400 Subject: [PATCH] Remove executable permissions from more non-script sources, and send a PR upstream --- grpc.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/grpc.spec b/grpc.spec index 2d85596..78a36b7 100644 --- a/grpc.spec +++ b/grpc.spec @@ -630,8 +630,10 @@ rm -rvf third_party/xxhash # https://github.com/grpc/grpc/issues/25945. echo '===== Fixing permissions =====' 2>&1 -# Fix some of the weirdest accidentally-executable files -find . -type f -name '*.md' -perm /0111 -execdir chmod -v a-x '{}' '+' +# https://github.com/grpc/grpc/pull/27069 +find . -type f -perm /0111 \ + -exec gawk '!/^#!/ { print FILENAME }; { nextfile }' '{}' '+' | + xargs -r chmod -v a-x echo '===== Loosening version specifications =====' 2>&1 # Allow building Python documentation with a newer Sphinx; the upstream version