RFR: 8273922: (fs) UserDefinedFileAttributeView doesn't handle file names that are just under the MAX_PATH limit (win) [v3]
Brian Burkhalter
bpb at openjdk.java.net
Thu Oct 21 21:40:06 UTC 2021
On Wed, 22 Sep 2021 13:25:56 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8273922: Make join() reject absolute path in 1nth in 'name' parameter
>
> src/java.base/windows/classes/sun/nio/fs/WindowsUserDefinedFileAttributeView.java line 64:
>
>> 62: String path = join(file.getPathForWin32Calls(), name);
>> 63: WindowsPath wp = WindowsPath.createFromNormalizedPath(wfs, path);
>> 64: return wp.getPathForWin32Calls();
>
> I think we can simplify this to avoid most of the conversions, I'll get back to you soon with a proposal for this.
Do you have any further suggestions on this? Thanks.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5594
More information about the nio-dev
mailing list