Skip to content

Commit

Permalink
Remove overzealous permission change post-install
Browse files Browse the repository at this point in the history
Allows group-writeable Ruby installations

Reverts e1b50e6

Fix rbenv#400, close rbenv#903
  • Loading branch information
mislav committed Oct 31, 2019
1 parent 1fe53fa commit 3a10951
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions bin/ruby-build
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ make_package() {
before_install_package "$package_name"
build_package "$package_name" $*
after_install_package "$package_name"
fix_directory_permissions
popd >&4
}

Expand Down Expand Up @@ -772,11 +771,6 @@ after_install_package() {
local stub=1
}

fix_directory_permissions() {
# Ensure installed directories are not world-writable to avoid Bundler warnings
find "$PREFIX_PATH" -type d \( -perm -020 -o -perm -002 \) -exec chmod go-w {} \;
}

fix_rbx_gem_binstubs() {
local prefix="$1"
local gemdir="${prefix}/gems/bin"
Expand Down

0 comments on commit 3a10951

Please sign in to comment.