Skip to content

Commit 2011c35

Browse files
committed
8274562: (fs) UserDefinedFileAttributeView doesn't correctly determine if supported when using OverlayFS
Backport-of: 3d7671b65e8491f3b1fcac8b96401401f783c9f4
1 parent ab3dd20 commit 2011c35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ Java_sun_nio_fs_UnixNativeDispatcher_init(JNIEnv* env, jclass this)
317317

318318
/* supports extended attributes */
319319

320-
#ifdef _SYS_XATTR_H_
320+
#if defined(_SYS_XATTR_H) || defined(_SYS_XATTR_H_)
321321
capabilities |= sun_nio_fs_UnixNativeDispatcher_SUPPORTS_XATTR;
322322
#endif
323323

@@ -1330,4 +1330,4 @@ Java_sun_nio_fs_UnixNativeDispatcher_flistxattr(JNIEnv* env, jclass clazz,
13301330
if (res == (size_t)-1)
13311331
throwUnixException(env, errno);
13321332
return (jint)res;
1333-
}
1333+
}

0 commit comments

Comments
 (0)