aboutsummaryrefslogtreecommitdiffstats
path: root/Library/brew.sh
diff options
context:
space:
mode:
authorMartin Afanasjew2016-04-07 22:09:14 +0200
committerMartin Afanasjew2016-04-08 00:04:15 +0200
commitd7aa0c0335dd67e4151503f3a29d7089c57059c3 (patch)
tree23f05b155acf614ab634da9afd090cad8fed969e /Library/brew.sh
parentd5085edce0b5482771c66cfe3e2c013ee3ca90f6 (diff)
downloadbrew-d7aa0c0335dd67e4151503f3a29d7089c57059c3.tar.bz2
scm/git: prevent exec bomb with 'env :userpaths'
Using `git` from `Formula#install` can cause an exec bomb if used in a formula with `env :userpaths` because that causes both `Library/ENV/4.3` and `Library/ENV/scm` to be in PATH, both of which contain a `git` binary that is the same SCM wrapper. Those will mutually exec each other indefinitely as they fail to detect that they are the same wrapper. Extend the exec-bomb protection to check the paths after all symbolic links have been expanded to prevent this situation. Fixes #43. Fixes Homebrew/homebrew-core#133. Fixed Homebrew/homebrew-core#143. Closes #46. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
Diffstat (limited to 'Library/brew.sh')
0 files changed, 0 insertions, 0 deletions