Skip to content

Commit

Permalink
1.9.2 compat: specify :mode to FileUtils.install
Browse files Browse the repository at this point in the history
  • Loading branch information
danp authored and FooBarWidget committed Aug 2, 2011
1 parent 8e34d3e commit ed2c95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phusion_passenger/standalone/runtime_installer.rb
Expand Up @@ -307,7 +307,7 @@ def copy_files(files, target)
if !File.directory?(dir) if !File.directory?(dir)
FileUtils.mkdir_p(dir) FileUtils.mkdir_p(dir)
end end
FileUtils.install(filename, "#{target}/#{filename}") FileUtils.install(filename, "#{target}/#{filename}", :mode => File.stat(filename).mode)
yield(i + 1, files.size) yield(i + 1, files.size)
end end
end end
Expand Down

0 comments on commit ed2c95d

Please sign in to comment.