RFR: 8357425: (fs) SecureDirectoryStream setPermissions should use fchmodat
Brian Burkhalter
bpb at openjdk.org
Fri May 30 18:20:55 UTC 2025
On Fri, 30 May 2025 08:13:53 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> I think it means that it is not supported on AIX because some of the "at" calls don't exist
The pertinent code in `UnixNativeDispatcher.c` is
/* supports openat, etc. */
if (my_openat_func != NULL && my_fstatat_func != NULL &&
my_unlinkat_func != NULL && my_renameat_func != NULL &&
my_fdopendir_func != NULL)
{
capabilities |= sun_nio_fs_UnixNativeDispatcher_SUPPORTS_OPENAT;
}
Maybe the list of "at" syscalls needs to be reexamined and/or made more fine grained (not for this PR)?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25534#issuecomment-2923085384
More information about the nio-dev
mailing list