JDK-8345430 : (fs) Override FileSystemProvider.createDirectory on Linux not to throw AccessDeniedException on EACCES if the path is to a directory
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 24
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: linux
  • CPU: generic
  • Submitted: 2024-12-03
  • Updated: 2025-07-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
mkdir(2) on Linux [1] is permitted to fail with either EACCES or EEXIST according to POSIX [2]. In [3] the possibility was discussed of not throwing AccessDeniedException on Linux when mkdir fails with EACCES and the Path is to a directory. This should be investigated.

[1] https://www.man7.org/linux//man-pages/man2/mkdir.2.html
[2] https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/functions/V2_chap02.html#tag_16_03
[3] https://mail.openjdk.org/pipermail/nio-dev/2024-November/018565.html