8274562: (fs) UserDefinedFileAttributeView doesn't correctly determine if supported when using OverlayFS
Reviewed-by: alanb
This commit is contained in:
parent
c05dc268ac
commit
3d7671b65e
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user