Dir.mktmpdir("foo",&block) does not work ----------------------------------------
Key: JRUBY-6178 URL: https://jira.codehaus.org/browse/JRUBY-6178 Project: JRuby Issue Type: Bug Components: Ruby 1.9.2 Affects Versions: JRuby 1.6.5 Environment: Standard Linux with "/tmp" with the sticky bit set Reporter: Xuân Baldauf Assignee: Thomas E Enebo {noformat} rvm jruby-1.6.5 do ruby -e 'require "fileutils"; require "tmpdir"; Dir.mktmpdir("foo") do |dirname| end' {noformat} yields {noformat} Errno::EACCES: Permission denied - /tmp/foo20111103-18841-j0gpt1/. initialize at org/jruby/RubyFile.java:442 open at org/jruby/RubyIO.java:1111 remove_entry_secure at /home/user/.rvm/rubies/jruby-1.6.5/lib/ruby/1.8/fileutils.rb:699 mktmpdir at /home/user/.rvm/rubies/jruby-1.6.5/lib/ruby/1.8/tmpdir.rb:131 (root) at -e:1 {noformat} While it should actually not raise any error. The problem seems to happen when the directory is deleted, not when it is created. I find it odd, though, that fileutils opens a File on a directory. Applications which are working with temporary directories are affected apparently. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email