From cb9789bc35ca13d631c5f79e8a7ed4e62a5dd6eb Mon Sep 17 00:00:00 2001 From: mamekoro <86554319+mamekoro@users.noreply.github.com> Date: Tue, 26 Mar 2024 05:03:55 +0900 Subject: [PATCH] Remove unnecessary executable flags from Rust source files (#12707) # Objective I found that some .rs files are unnecessarily executable. Rust source files may start with a shebang-like statement `#!`, so let's make sure they are not executable just in case. Here is the result of the `find` commend that lists executable .rs files as of main branch `86bd648`. ```console $ find -name \*.rs -type f -executable ./crates/bevy_gizmos/src/lib.rs ./crates/bevy_tasks/src/lib.rs ./crates/bevy_time/src/lib.rs ./crates/bevy_transform/src/lib.rs ./src/lib.rs ``` It appears that the permissions of those files were originally 644, but were unexpectedly changed to 755 by commit https://github.com/bevyengine/bevy/commit/52e3f2007b54f6be215e59e74aaf3d30b3dad67c. ## Solution Make them not executable by using this command; `find -name \*.rs -type f -executable -exec chmod --verbose a-x -- {} \+` --- crates/bevy_gizmos/src/lib.rs | 0 crates/bevy_tasks/src/lib.rs | 0 crates/bevy_time/src/lib.rs | 0 crates/bevy_transform/src/lib.rs | 0 src/lib.rs | 0 5 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 crates/bevy_gizmos/src/lib.rs mode change 100755 => 100644 crates/bevy_tasks/src/lib.rs mode change 100755 => 100644 crates/bevy_time/src/lib.rs mode change 100755 => 100644 crates/bevy_transform/src/lib.rs mode change 100755 => 100644 src/lib.rs diff --git a/crates/bevy_gizmos/src/lib.rs b/crates/bevy_gizmos/src/lib.rs old mode 100755 new mode 100644 diff --git a/crates/bevy_tasks/src/lib.rs b/crates/bevy_tasks/src/lib.rs old mode 100755 new mode 100644 diff --git a/crates/bevy_time/src/lib.rs b/crates/bevy_time/src/lib.rs old mode 100755 new mode 100644 diff --git a/crates/bevy_transform/src/lib.rs b/crates/bevy_transform/src/lib.rs old mode 100755 new mode 100644 diff --git a/src/lib.rs b/src/lib.rs old mode 100755 new mode 100644