]> git.proxmox.com Git - libgit2.git/commit - src/win32/posix_w32.c
fileops: Fix stat() on directories for W32
authorVicent Marti <tanoku@gmail.com>
Mon, 4 Jul 2011 19:33:26 +0000 (21:33 +0200)
committerVicent Marti <tanoku@gmail.com>
Tue, 5 Jul 2011 00:08:09 +0000 (02:08 +0200)
commit19ac1ed702b043790f4a6f0d095dd81f078b6c4c
tree6d7a528c92076ca443e2ae226134dd1f40a642fa
parent5ad739e8328c665b629e2285abaec7e12ea8397c
fileops: Fix stat() on directories for W32

The `stat` methods were having issues when called with a trailing slash
in Windows platforms.

We now use GetFileAttributes() where possible, which doesn't have this
restriction.
src/fileops.c
src/repository.c
src/win32/posix.c
src/win32/posix.h