diff options
| author | xxxajk | 2014-08-14 02:04:34 -0400 |
|---|---|---|
| committer | Mike McQuaid | 2014-08-14 10:36:07 +0100 |
| commit | 1dc384b4c4e94621b7ba1b62358e5730dfb8e8da (patch) | |
| tree | f443ee54d07bec445331aa225930027d76cb3b8d /Library | |
| parent | c7444d34f783c7716d87ae7ea1074bec62f703bc (diff) | |
| download | brew-1dc384b4c4e94621b7ba1b62358e5730dfb8e8da.tar.bz2 | |
Fix mktmp to be generic as-per SUS/BSD.
Closes Homebrew/homebrew#31586.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/extend/fileutils.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 746825ddd..dcdc34a42 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -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 diff --git a/Library/Homebrew/extend/fileutils.rb b/Library/Homebrew/extend/fileutils.rb index f0c0322ae..76e9b610e 100644 --- a/Library/Homebrew/extend/fileutils.rb +++ b/Library/Homebrew/extend/fileutils.rb @@ -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 |
