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>
This commit is contained in:
parent
3afacc351c
commit
332c990377
@ -22,10 +22,9 @@ module FileUtils
|
|||||||
else
|
else
|
||||||
Process.gid
|
Process.gid
|
||||||
end
|
end
|
||||||
# Make OS X 10.6.7 (ruby-1.8.7-p174) and earlier happy.
|
|
||||||
group_id = group_id.to_s
|
|
||||||
begin
|
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
|
rescue Errno::EPERM
|
||||||
opoo "Failed setting group \"#{Etc.getgrgid(group_id).name}\" on #{tmp}"
|
opoo "Failed setting group \"#{Etc.getgrgid(group_id).name}\" on #{tmp}"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user