RFR: 8295753: (fs) UnixPath::toRealPath does not return correct case when links not followed [v2]

Brian Burkhalter bpb at openjdk.org
Thu Nov 3 15:59:36 UTC 2022


On Tue, 1 Nov 2022 07:45:16 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Brian Burkhalter has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
>> 
>>  - Merge
>>  - 8295753: Use UnixDirectoryStream; compare UnixFileKeys; add SecurityManager
>>  - 8295753: (fs) UnixPath::toRealPath does not return correct case when links not followed
>
> src/java.base/unix/classes/sun/nio/fs/UnixPath.java line 882:
> 
>> 880:         // entry in the same directory which has an equal key
>> 881:         for (int i = 0; i < result.getNameCount(); i++ ) {
>> 882:             UnixPath elt = result.getName(i);
> 
> Minor nit but the the naming above is "element", it switches to "elt" here.

This was also fixed in 49d18c6a39d9d70b7da91c5b4b3740ba3c890948.

-------------

PR: https://git.openjdk.org/jdk/pull/10843


More information about the nio-dev mailing list