Files
git/compat
Karsten Blees fccc92e84c Win32: don't call GetFileAttributes twice in mingw_lstat()
GetFileAttributes cannot handle paths with trailing dir separator. The
current [l]stat implementation calls GetFileAttributes twice if the path
has trailing slashes (first with the original path passed to [l]stat, and
and a second time with a path copy with trailing '/' removed).

With Unicode conversion, we get the length of the path for free and also
have a (wide char) buffer that can be modified.

Remove trailing directory separators before calling the Win32 API.

Signed-off-by: Karsten Blees <blees@dcon.de>
2024-04-19 22:42:32 +02:00
..
2024-04-19 22:09:12 +02:00
2024-04-19 22:09:12 +02:00
2022-05-02 09:50:37 -07:00
2022-05-02 09:50:37 -07:00
2021-02-26 14:15:51 -08:00
2021-10-29 15:00:58 -07:00