Files
git/compat
Karsten Blees b7790d054f 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>
2019-02-07 14:46:26 +01:00
..
2019-02-07 14:46:07 +01:00
2017-07-05 14:01:03 -07:00
2017-07-05 14:01:03 -07:00
2019-02-07 14:46:24 +01:00
2019-02-07 14:46:21 +01:00
2019-02-07 14:46:20 +01:00