On Fri, 26 Jun 2026 at 05:55, Adam Wood <[email protected]> wrote: > > For a directory symlink, I think the type of the file depends on whether you > call stat or lstat. For stat, the type should be a directory. For lstat, it > should be a symlink. So I think your __check_handle_type should work for > stat, but I can't exactly tell what would happen when it gets called from > lstat.
Hmm, yes, so __check_handle_type needs to be passed the following_symlinks bool flag, so that it doesn't check for symlinks when called from stat, only when called from lstat. > > Anyways, I am struggling to make the cross-compiler, but hopefully tomorrow > I'll follow this tutorial: > https://sourceforge.net/p/mingw-w64/wiki2/Build%20a%20native%20Windows%2064-bit%20gcc%20from%20Linux%20%28including%20cross-compiler%29/ > up to the end of step 3, and then I will be able to run make check-compile. I don't think using a cross-compiler matters, I think the difference between our test results is probably just due to the version of mingw-w64 we're using. I have 13.0.0 (from Fedora 43) but I assume you're using 14.0.0 which would explain why you didn't see the tests failing.
