diff options
| author | Yoshimasa Niwa | 2016-10-09 13:27:31 -0700 |
|---|---|---|
| committer | Yoshimasa Niwa | 2016-10-09 13:27:31 -0700 |
| commit | d00f35b8c4dcdcbf86074015f0471f27e3dc2aaa (patch) | |
| tree | 232cd081d6147e6668b8dfe589f9c14c30af11af /Library/Homebrew/dev-cmd | |
| parent | 0546d90e3dbdae30407e5256d680be5ed5f5f000 (diff) | |
| download | brew-d00f35b8c4dcdcbf86074015f0471f27e3dc2aaa.tar.bz2 | |
FIX: cask changes /usr/local ownership recursively
Relatively old code in Hbc::Caskroom recursively changes the ownership
of the directory where the Caskroom directory exists, that changes
entire files in /usr/local to user:staff if Homebrew setup with default
configuration.
This is really dangerous because it's easy to trigger (just simply type
`brew cask something` by following some installation documentation.)
This patch removes entire `chown` with -R option and make the logic
simply creating Caskroom directory with default Homebrew directories
ownership and permission.
Diffstat (limited to 'Library/Homebrew/dev-cmd')
0 files changed, 0 insertions, 0 deletions
