Files
git/compat
Karsten Blees b2b008e89b 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>
2017-04-12 21:08:09 +02:00
..
2017-04-12 21:08:08 +02:00
2016-01-04 09:51:33 -08:00
2017-04-12 21:08:08 +02:00
2013-09-11 11:08:52 -07:00
2013-04-12 12:23:20 -07:00
2017-01-23 11:02:34 -08:00