Karsten Blees 643694d1bf 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>
2015-05-12 11:09:01 +02:00
2015-05-01 15:35:58 +02:00
2015-05-01 15:35:57 +02:00
2015-05-01 15:33:30 +02:00
2015-05-01 15:33:30 +02:00
2015-04-30 11:25:06 -07:00
2015-03-27 13:02:32 -07:00
2015-05-01 15:35:59 +02:00
2015-05-01 15:36:00 +02:00
2015-03-23 11:12:58 -07:00
2015-04-27 12:25:36 -07:00
2015-03-22 21:39:16 -07:00
2015-03-22 21:39:18 -07:00

Git for Windows

Join the chat at https://gitter.im/git-for-windows/git

This is the source code of Git for Windows, forked from Git.

This project is run by a governance model. If you encounter problems, you can report them as GitHub issues, discuss them on Git for Windows' Google Group, and contribute bug fixes.

Description
No description provided
Readme 692 MiB
Languages
C 50.5%
Shell 38.8%
Perl 4.4%
Tcl 3.2%
Python 0.8%
Other 2.1%