tmpdir cannot be delete when jruby has sudo/root rights
-------------------------------------------------------
Key: JRUBY-5678
URL: http://jira.codehaus.org/browse/JRUBY-5678
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.6
Environment: MacOS, Linux
Reporter: lucas dicioccio
When running with root access rights, temp dirs cannot be deleted.
{quote}
require 'tmpdir'
Dir.mktmpdir do |d|
p d
end
{quote}
Run fine as simple user, but as root.
{quote}
sh-3.2# jruby foo.rb
"/tmp/d20110331-37927-ntr68q"
Errno::EACCES: Permission denied - /tmp/d20110331-37927-ntr68q/.
initialize at org/jruby/RubyFile.java:434
open at org/jruby/RubyIO.java:1116
remove_entry_secure at /opt/jruby/lib/ruby/1.8/fileutils.rb:699
mktmpdir at /opt/jruby/lib/ruby/1.8/tmpdir.rb:131
(root) at foo.rb:4
{quote}
(same with sudo)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
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