We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be64c32 commit 1ca8dd0Copy full SHA for 1ca8dd0
test/jdk/java/nio/file/attribute/BasicFileAttributeView/libCreationTimeHelper.c
@@ -115,7 +115,11 @@ EXPORT bool linuxIsCreationTimeSupported(char* file) {
115
if (ret != 0) {
116
return false;
117
}
118
- if (stx.stx_mask & STATX_BTIME)
+ // On some systems where statx is available but birth time might still not
119
+ // be supported as it's file system specific. The only reliable way to
120
+ // check for supported or not is looking at the filled in STATX_BTIME bit
121
+ // in the returned statx buffer mask.
122
+ if ((stx.stx_mask & STATX_BTIME) != 0)
123
return true;
124
125
#else
0 commit comments