Passing readonly mode to File.new on Mac OS X gets File not found error.
------------------------------------------------------------------------
Key: JRUBY-2090
URL: http://jira.codehaus.org/browse/JRUBY-2090
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1RC2
Environment: Mac OS X, revision 5861
Reporter: Pat Cheng
Attachments: ChannelDescriptor-Diff.patch
the following code failed:
require 'fileutils'
require 'tempfile'
File.delete( 'readonly') if File.exists?( 'readonly')
File.delete( 'output' ) if File.exists?( 'output' )
File.new( 'readonly', 'w')
File.chmod(0444, 'readonly')
st = File.stat( 'readonly' )
File.new( 'output', 'w', st.mode )
--
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