Benoit Daloze created JRUBY-6578: ------------------------------------ Summary: File.readlink with chdir Key: JRUBY-6578 URL: https://jira.codehaus.org/browse/JRUBY-6578 Project: JRuby Issue Type: Bug Reporter: Benoit Daloze Assignee: Thomas E Enebo Attachments: 0001-Fix-File.readlink-when-chdir-and-avoid-NPE.patch
Hello, I've been noticing File.readlink does not work well when changing cwd. I poked around and with [#3300|http://jira.codehaus.org/browse/JRUBY-3300] and understood there was a missing file() call. I also moved the File.exist? test since readlink should succeed even if the target does not exists (File.read? link will return false in this case, even if the link actually exists). The failure I observed was an NPE, because null was passed to newString(). I used runtime.newErrnoFromLastPOSIXErrno() but I'm not sure if it's appropriate (what's JNA3?). Where should I add the tests? RubySpec? JRuby's tests? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.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