C extensions are not considered for loading if a path contains ".."
-------------------------------------------------------------------

                 Key: JRUBY-5045
                 URL: http://jira.codehaus.org/browse/JRUBY-5045
             Project: JRuby
          Issue Type: Bug
         Environment: Concerns cext branch now
            Reporter: Tim Felgentreff
            Assignee: Thomas E Enebo
            Priority: Minor


When requiring a C extension with a relative path containing ".." (e.g. from 
using 'require File.dirname(__FILE__) + "../something.bundle"'), the 
NormalSearcher will throw a LoadError (line 1019) because the basename starts 
with "./"

The problem here seems to be that the path starts with "./" and should thus be 
searched with CWD logic. Because source types are tried first, however, this 
finds nothing (in tryResourceFromLoadPathOrURL). Further down the condition 
.startWith("./") is used to throw a LoadError for some reason.

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