Merge pull request #10162 from fxcoudert/at

mktemp: avoid directories with @
This commit is contained in:
FX Coudert 2020-12-28 14:25:41 +01:00 committed by GitHub
commit 9e0ed470e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ class Mktemp
end end
def run def run
@tmpdir = Pathname.new(Dir.mktmpdir("#{@prefix}-", HOMEBREW_TEMP)) @tmpdir = Pathname.new(Dir.mktmpdir("#{@prefix.tr "@", "-"}-", HOMEBREW_TEMP))
# Make sure files inside the temporary directory have the same group as the # Make sure files inside the temporary directory have the same group as the
# brew instance. # brew instance.