RFR: 8306882: (fs) Path.toRealPath(LinkOption.NOFOLLOW_LINKS) fails when "../../" follows a link
Brian Burkhalter
bpb at openjdk.org
Tue Aug 29 20:41:13 UTC 2023
On Wed, 23 Aug 2023 01:09:16 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> Modify `Path.toRealPath` such that it does not collapse links such as "link/.." or "link/../.." when `LinkOption.NOFOLLOW_LINKS` is specified or, in some cases, not.
The test and Windows changes reverted by 75db49960921293dd6b50c96e0961475c8ec2af4 will be addressed by merging and modifying the patch #15474 and by a separate issue to be filed, respectively.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15397#issuecomment-1698095077
More information about the nio-dev
mailing list