dev/null file handled incorrectly in many cases
-----------------------------------------------

                 Key: JRUBY-2159
                 URL: http://jira.codehaus.org/browse/JRUBY-2159
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1RC2
         Environment: Latest JRuby 1.1RC2
            Reporter: Vladimir Sizikov
            Assignee: Vladimir Sizikov
             Fix For: JRuby 1.1


'dev/null' is a special file, and should be handled specially.

Here's a preliminary list of places in JRuby that handle it incorrectly:

1. f  = File.open('/dev/null', 'a+')  # opening with a+ => exception
2. f.seek(10) => exception
3. f.puts and then f.gets => exception
4. f.flock(File::LOCK_EX) => Jruby breakage


-- 
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


Reply via email to