diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-07-04 21:33:26 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-07-05 02:08:09 +0200 |
| commit | 19ac1ed702b043790f4a6f0d095dd81f078b6c4c (patch) | |
| tree | 6d7a528c92076ca443e2ae226134dd1f40a642fa /src/win32/posix.h | |
| parent | 5ad739e8328c665b629e2285abaec7e12ea8397c (diff) | |
| download | libgit2-19ac1ed702b043790f4a6f0d095dd81f078b6c4c.tar.gz | |
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.
Diffstat (limited to 'src/win32/posix.h')
| -rw-r--r-- | src/win32/posix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32/posix.h b/src/win32/posix.h index 3b5bff806..90571ae1d 100644 --- a/src/win32/posix.h +++ b/src/win32/posix.h @@ -21,6 +21,6 @@ extern int p_unlink(const char *path); extern int p_lstat(const char *file_name, struct stat *buf); extern int p_readlink(const char *link, char *target, size_t target_len); extern int p_hide_directory__w32(const char *path); -extern int p_realpath(const char *orig_path, char *buffer); +extern char *p_realpath(const char *orig_path, char *buffer); #endif |
