diff options
| author | ilovezfs | 2016-04-05 11:52:12 -0700 |
|---|---|---|
| committer | ilovezfs | 2016-04-05 12:24:40 -0700 |
| commit | 332c990377fa37b2aea13c646ed737f36a8b2b0b (patch) | |
| tree | ca10900702801cbf1c110af0e4b5196456e9425a /Library | |
| parent | 3afacc351c44c4cee08c181e7c761f44e8b43722 (diff) | |
| download | brew-332c990377fa37b2aea13c646ed737f36a8b2b0b.tar.bz2 | |
FileUtils::mktemp pass gid to Etc.getgrgid as int
We need to move the Snow Leopard fix down since Etc.getgrgid can't
handle a string.
Closes #31.
Signed-off-by: ilovezfs <ilovezfs@icloud.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/fileutils.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/extend/fileutils.rb b/Library/Homebrew/extend/fileutils.rb index b3e1da87f..74da1f6e6 100644 --- a/Library/Homebrew/extend/fileutils.rb +++ b/Library/Homebrew/extend/fileutils.rb @@ -22,10 +22,9 @@ module FileUtils else Process.gid end - # Make OS X 10.6.7 (ruby-1.8.7-p174) and earlier happy. - group_id = group_id.to_s begin - chown(nil, group_id, tmp) + # group_id.to_s makes OS X 10.6.7 (ruby-1.8.7-p174) and earlier happy. + chown(nil, group_id.to_s, tmp) rescue Errno::EPERM opoo "Failed setting group \"#{Etc.getgrgid(group_id).name}\" on #{tmp}" end |
