Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
avoid "write_in_full(fd, buf, len) != len" pattern
[gitweb.git]
/
fast-import.c
diff --git
a/fast-import.c
b/fast-import.c
index a959161b4631e134602aa9b5502105ee5c5bcfb8..395524039b97d3132e4f37f5a066c3f2f4d3a0b6 100644
(file)
--- a/
fast-import.c
+++ b/
fast-import.c
@@
-2951,7
+2951,7
@@
static void parse_reset_branch(const char *arg)
static void cat_blob_write(const char *buf, unsigned long size)
{
- if (write_in_full(cat_blob_fd, buf, size)
!= size
)
+ if (write_in_full(cat_blob_fd, buf, size)
< 0
)
die_errno("Write to frontend failed");
}