[SERVER-53100] remove executable permission from source files Created: 28/Nov/20  Updated: 29/Oct/23  Resolved: 28/Nov/20

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Improvement Priority: Major - P3
Reporter: Billy Donahue Assignee: Billy Donahue
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Service arch 2020-11-30
Participants:

 Description   

These are text files with no need for execute permission.
Most likely this is from a Windows origin for the files, but execute permission really should not be granted carelessly.

$ find src/mongo -type f -executable \! \( -name '*.py' -o -name '*.sh' \)
src/mongo/db/cst/bson_location.h
src/mongo/db/cst/cst_error_test.cpp
src/mongo/db/cst/cst_match_test.cpp
src/mongo/db/cst/cst_match_translation.cpp
src/mongo/db/cst/cst_match_translation.h
src/mongo/db/cst/cst_match_translation_test.cpp
src/mongo/db/cst/cst_parser.h
src/mongo/db/cst/cst_sort_translation_test.cpp
src/mongo/db/cst/cst_expression_test.cpp
src/mongo/db/mongo.ico
src/mongo/embedded/mongo_embedded/java/gradlew
src/mongo/installer/compass/Install-Compass.ps1
src/mongo/installer/compass/install_compass
src/mongo/shell/mongo.ico

The gradlew and the compass/ files are intentionally executable.
The others should get a chmod a-x.



 Comments   
Comment by Githook User [ 28/Nov/20 ]

Author:

{'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}

Message: SERVER-53100 remove executable permission from text files
Branch: master
https://github.com/mongodb/mongo/commit/a2eef18e048f4123f7822a0eae68a9760cf682a4

Generated at Thu Feb 08 05:29:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.