https://sourceware.org/bugzilla/show_bug.cgi?id=31800
Bug ID: 31800 Summary: src-release.sh recursively changes permissions of everything in to 0777 Product: binutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: rostiprodev at gmail dot com Target Milestone: --- After running this script permissions of all files and directories (including files of Git repo and the root directory of the project) are changed to 0777, i.e. everything is open for everybody for any read-write operation. This is not good, not secure and must never be done. The src-release.sh script does it by the following line: chmod -R og=u . || chmod og=u `find . -print` Please remove this line. The src-release.sh works properly without that line and doesn't change permissions of files or directories. In case a particular file must have special permissions you can change those permissions in the Git repository. Git always stores file permissions of all BLOB (file) and TREE (directory) object in the appropriate TREE objects that point to (have) them. For more information read: [1] https://git-scm.com/book/en/v2/Git-Internals-Git-Objects#_tree_objects [2] https://adamj.eu/tech/2023/01/31/git-add-remove-execute-permissions/ I found this issue in the "binutils-2_42-branch" Git branch but it exists in master and in some older branches as well. -- You are receiving this mail because: You are on the CC list for the bug.