RFR: 8356493: (fs) SecureDirectoryStream missing some capabilities [v2]
Brian Burkhalter
bpb at openjdk.org
Fri Sep 5 17:02:10 UTC 2025
On Thu, 4 Sep 2025 21:50:37 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> In my particular application, the target is an absolute `Path`, so having to open another directory stream to pass as the target dir would be roundabout.
>
>> In my particular application, the target is an absolute `Path`, so having to open another directory stream to pass as the target dir would be roundabout.
>
> Thanks, that's helpful.
> I think this may also need a `LinkOption` flag to pass `AT_FOLLOW_SYMLINKS`?
Adding `LinkOption.FOLLOW_LINKS` could be confusing when there is already `LinkOption.NOFOLLOW_LINKS`. For consistency with the `Files` APIs, it might be better to follow links by default (`AT_SYMLINK_FOLLOW`). Also, the macOS man page for `linkat` states
On OS X, not assigning AT_SYMLINK_FOLLOW to flag may result in
some file systems returning an error.
which is not encouraging.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26950#discussion_r2325612518
More information about the nio-dev
mailing list