JRUBY-4760 fix does not work on Windows
---------------------------------------

                 Key: JRUBY-4879
                 URL: http://jira.codehaus.org/browse/JRUBY-4879
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.5.1
            Reporter: Garrett Conaty
            Assignee: Thomas E Enebo
         Attachments: JRUBY-4879.patch

The previous fix for JRUBY-4760 solves the .. in the path by using 
File.getCanonicalPath with /

entry = zf.getEntry(new File("/" + path + "/").getCanonicalPath().substring(1));


However '/' doesn't begin the filesystem root on Windows.  The 'substring' cuts 
right into the middle of a drive letter.

The attached patch should handle both cases.

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