diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-06-08 17:03:41 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-06-08 17:03:41 +0200 |
commit | ae496955d23d8c323259c0e090911d6fa3e2c3dc (patch) | |
tree | a44129a4d0b52def1333cb170a9af5304146d716 /src/blob.c | |
parent | 1071c56519866afd41db2f30705eba8406b6a4a1 (diff) | |
download | libgit2-ae496955d23d8c323259c0e090911d6fa3e2c3dc.tar.gz |
windows: Fix Symlink issues
Handle Symlinks if they can be handled in Win32. This is not even
compiled. Needs review.
The lstat implementation is modified from core Git.
The readlink implementation is modified from PHP.
Diffstat (limited to 'src/blob.c')
-rw-r--r-- | src/blob.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blob.c b/src/blob.c index 12f468ef7..c95d018e2 100644 --- a/src/blob.c +++ b/src/blob.c @@ -119,9 +119,9 @@ int git_blob_create_fromfile(git_oid *oid, git_repository *repo, const char *pat ssize_t read_len; if (!islnk) - read_len = read(fd, buffer, sizeof(buffer)); + read_len = gitfo_read(fd, buffer, sizeof(buffer)); else - read_len = readlink(full_path, buffer, sizeof(buffer)); + read_len = gitfo_readlink(full_path, buffer, sizeof(buffer)); if (read_len < 0) { if (!islnk) |