remove executable bit for various files #3025
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
master
.master
branch has other files affected not in 3.4. Easy to do a separate PR formaster-master
if desired, let me know 🙂Remove executable bits from files that do not need it. Including steps taken to identify for help in review, feel free to force push over my branch or alternatively fix it directly without a PR from me. See bottom checklist for "outliers".
The available file extensions for consideration:
Assuming
sh
andpy
files are correctly executable, some of these file types can be fixed as is but some I am not sure whether the executable bit matters. In this PR I'm removing it from everything except forsh
andpy
files.Then to actually fix the permissions you just want to, now that we have the right listing, execute
chmod -x
:$ find . -type f -executable -not -path "*/.git/*" -and -not -name "*.sh" -and -not -name "*.py" -exec chmod -x {} \;
and to check what went down, look for executable files again without pruning (except for
.git
folder):Unofficially labeling these as "outliers", do any of the below need to have the executable bit removed? As far as I could tell it's correct but I didn't look super close and don't use most of these modules.
./samples/python2/seeds.py
./samples/python2/common.py
./samples/python2/video.py
./modules/reg/samples/reg_shift.py
./modules/optflow/samples/motempl.py
./modules/face/samples/etc/crop_face.py
./modules/face/samples/etc/create_csv.py
./modules/cnn_3dobj/samples/datagen_front.sh
./modules/cnn_3dobj/samples/datagen_all.sh
./modules/cnn_3dobj/samples/datagen_back.sh
./modules/cnn_3dobj/samples/featstore.sh
./modules/dnns_easily_fooled/download_caffe_gradient_ascent.sh
./modules/dnns_easily_fooled/download_sferes.sh
./modules/dnns_easily_fooled/download_caffe_evolutionary_algorithm.sh