Created
December 13, 2016 22:56
-
-
Save kml/592e73090cc91fd5e07a2a7e3f9aed93 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
# ISSUE: https://github.com/jruby/jruby/issues/405 | |
# In JRuby, FileUtils.remove_entry_secure(dir) crashes when a dir is under | |
# a world-writable directory because it tries to open directory. | |
# Opening directory is not allowed in Java. | |
# -- https://github.com/jruby/jruby/blob/1.7.0/lib/ruby/1.9/tmpdir.rb#L25-L28 | |
#[1] pry(main)> Dir.tmpdir | |
#=> "/home/capistrano/application/releases/20161115100828" | |
ENV["TMPDIR"] = Rails.root.join("tmp").to_s | |
#[3] pry(main)> Dir.tmpdir | |
#=> "/home/capistrano/application/releases/20161115100828/tmp" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment