--- a/support/misc/xstat.c 2019-06-24 21:31:55.260371592 +0200 +++ b/support/misc/xstat.c 2019-06-24 21:32:29.098777436 +0200 @@ -47,6 +47,8 @@ statx_copy(statbuf, &stxbuf); return 0; } + if (errno == EINVAL) + errno = ENOSYS; if (errno == ENOSYS) statx_supported = 0; } else