Skip to content
Snippets Groups Projects
Commit 1dc384b4 authored by xxxajk's avatar xxxajk Committed by Mike McQuaid
Browse files

Fix mktmp to be generic as-per SUS/BSD.


Closes Homebrew/homebrew#31586.

Signed-off-by: default avatarMike McQuaid <mike@mikemcquaid.com>
parent c7444d34
No related branches found
No related tags found
No related merge requests found
......@@ -700,7 +700,7 @@ def check_for_multiple_volumes
# Find the volumes for the TMP folder & HOMEBREW_CELLAR
real_cellar = HOMEBREW_CELLAR.realpath
tmp = Pathname.new with_system_path { `mktemp -d #{HOMEBREW_TEMP}/homebrew-brew-doctor-XXXX` }.strip
tmp = Pathname.new with_system_path { `mktemp -d #{HOMEBREW_TEMP}/homebrew-brew-doctor-XXXXXX` }.strip
real_temp = tmp.realpath.parent
where_cellar = volumes.which real_cellar
......
......@@ -14,7 +14,7 @@ module FileUtils
# /tmp volume to the other volume. So we let the user override the tmp
# prefix if they need to.
tempd = with_system_path { `mktemp -d #{HOMEBREW_TEMP}/#{prefix}-XXXX` }.chuzzle
tempd = with_system_path { `mktemp -d #{HOMEBREW_TEMP}/#{prefix}-XXXXXX` }.chuzzle
raise "Failed to create sandbox" if tempd.nil?
prevd = pwd
cd tempd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment