-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lstat returns incorrect zero size for symlink on Windows 11 #20476
Comments
I tried to investigate the source to find more information. I find win32_stat_low() function in |
This is reflected in the result of lstat() in perl. This matches POSIX behaviour. Fixed Perl#20476
This is reflected in the result of lstat() in perl. This matches POSIX behaviour. Fixed #20476
This is reflected in the result of lstat() in perl. This matches POSIX behaviour. Fixed Perl#20476
This is reflected in the result of lstat() in perl. This matches POSIX behaviour. Fixed Perl#20476
This is reflected in the result of lstat() in perl. This matches POSIX behaviour. Fixed Perl#20476
I have built a debug version of perl 5.37.6 on Windows 11 using MinGW-w64 and gcc 11.3.0 from https://winlibs.com/ (using the MSVCRT runtime library). Note that this includes #20271, which fixes the readlink behavior on Windows, see #20460 for more information.
When trying to install
Path::Tiny
using this perl I get a test failure due to lstat returning a zero size. Here is a minimal example:The output is:
expected output:
The expected size is 7 since the size of a symlink should be equal to the length of its path name according to the lstat(2) man page.
The text was updated successfully, but these errors were encountered: