8274562: (fs) UserDefinedFileAttributeView doesn't correctly determine if supported when using OverlayFS

Reviewed-by: alanb
This commit is contained in:
Brian Burkhalter 2021-10-01 15:30:55 +00:00
parent c05dc268ac
commit 3d7671b65e

View File

@ -317,7 +317,7 @@ Java_sun_nio_fs_UnixNativeDispatcher_init(JNIEnv* env, jclass this)
/* supports extended attributes */
#ifdef _SYS_XATTR_H_
#if defined(_SYS_XATTR_H) || defined(_SYS_XATTR_H_)
capabilities |= sun_nio_fs_UnixNativeDispatcher_SUPPORTS_XATTR;
#endif
@ -1330,4 +1330,4 @@ Java_sun_nio_fs_UnixNativeDispatcher_flistxattr(JNIEnv* env, jclass clazz,
if (res == (size_t)-1)
throwUnixException(env, errno);
return (jint)res;
}
}