summaryrefslogtreecommitdiff
path: root/streaming.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-01-27 10:44:59 -0800
committerJunio C Hamano <gitster@pobox.com>2014-01-27 10:44:59 -0800
commit7b4e2b7e6aba677fcefffde79d0d3a53ae623b4f (patch)
treeece06476fdfbb8ea18973ff3b1eddd62cea1ca39 /streaming.c
parentde20e4472157d0ed53bdc6374185a2ce3c7c9f3d (diff)
parentc9df6f4574c0174efd5000e0e99dca97ddb5034c (diff)
downloadgit-7b4e2b7e6aba677fcefffde79d0d3a53ae623b4f.tar.gz
Merge branch 'ef/mingw-write'
* ef/mingw-write: mingw: remove mingw_write prefer xwrite instead of write
Diffstat (limited to 'streaming.c')
-rw-r--r--streaming.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/streaming.c b/streaming.c
index 9659f18be2..d7c9f32f0c 100644
--- a/streaming.c
+++ b/streaming.c
@@ -538,7 +538,7 @@ int stream_blob_to_fd(int fd, unsigned const char *sha1, struct stream_filter *f
goto close_and_exit;
}
if (kept && (lseek(fd, kept - 1, SEEK_CUR) == (off_t) -1 ||
- write(fd, "", 1) != 1))
+ xwrite(fd, "", 1) != 1))
goto close_and_exit;
result = 0;