mirror of
https://github.com/gosticks/brew.git
synced 2026-10-04 14:37:11 +00:00
Merge pull request #7897 from claui/user-home-sandbox
sandbox: do not assume home is inside `/Users`
This commit is contained in:
@@ -47,12 +47,12 @@ class Sandbox
|
||||
end
|
||||
|
||||
def allow_cvs
|
||||
allow_write_path "/Users/#{ENV["USER"]}/.cvspass"
|
||||
allow_write_path "#{ENV["HOME"]}/.cvspass"
|
||||
end
|
||||
|
||||
def allow_fossil
|
||||
allow_write_path "/Users/#{ENV["USER"]}/.fossil"
|
||||
allow_write_path "/Users/#{ENV["USER"]}/.fossil-journal"
|
||||
allow_write_path "#{ENV["HOME"]}/.fossil"
|
||||
allow_write_path "#{ENV["HOME"]}/.fossil-journal"
|
||||
end
|
||||
|
||||
def allow_write_cellar(formula)
|
||||
@@ -63,7 +63,7 @@ class Sandbox
|
||||
|
||||
# Xcode projects expect access to certain cache/archive dirs.
|
||||
def allow_write_xcode
|
||||
allow_write_path "/Users/#{ENV["USER"]}/Library/Developer"
|
||||
allow_write_path "#{ENV["HOME"]}/Library/Developer"
|
||||
end
|
||||
|
||||
def allow_write_log(formula)
|
||||
|
||||
Reference in New Issue
Block a user