aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/help.rb
diff options
context:
space:
mode:
authorMartin Afanasjew2016-06-29 16:20:47 +0200
committerMartin Afanasjew2016-06-29 16:20:47 +0200
commit3c5f007bfa1a469ef3e1a048ee163f3eaa73cb71 (patch)
treed1a273c0e92a447af40048c9f4bc79964a4de83d /Library/Homebrew/cmd/help.rb
parentda06e813c2b8925499484ff8be7772f6aa6ae9e3 (diff)
downloadbrew-3c5f007bfa1a469ef3e1a048ee163f3eaa73cb71.tar.bz2
bin/brew: fix corner cases in prefix computation
If `bin/brew` happens to be symlinked to `/brew`, `/bin/brew`, or some similar location or (worse yet) Homebrew is installed to `/`, then computation of the prefix and/or repository path could break down and result in an invalid or empty path. Closes Homebrew/homebrew-core#2430.
Diffstat (limited to 'Library/Homebrew/cmd/help.rb')
0 files changed, 0 insertions, 0 deletions