Integrated: 8306882: (fs) Path.toRealPath(LinkOption.NOFOLLOW_LINKS) fails when "../../" follows a link

Brian Burkhalter bpb at openjdk.org
Thu Aug 31 21:17:25 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.

This pull request has now been integrated.

Changeset: 63f561fa
Author:    Brian Burkhalter <bpb at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/63f561fac2eb6ec57f860af71cd6deebb9027aaf
Stats:     68 lines in 3 files changed: 61 ins; 1 del; 6 mod

8306882: (fs) Path.toRealPath(LinkOption.NOFOLLOW_LINKS) fails when "../../" follows a link

Reviewed-by: alanb

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

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


More information about the nio-dev mailing list