Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New support function: change_local_filter_dir().
[rsync/rsync.git]
/
fileio.c
diff --git
a/fileio.c
b/fileio.c
index
a1b68d1
..
52e34bd
100644
(file)
--- a/
fileio.c
+++ b/
fileio.c
@@
-107,7
+107,7
@@
int write_file(int f,char *buf,size_t len)
while (len > 0) {
int r1;
while (len > 0) {
int r1;
- if (sparse_files) {
+ if (sparse_files
> 0
) {
int len1 = MIN(len, SPARSE_WRITE_SIZE);
r1 = write_sparse(f, buf, len1);
} else {
int len1 = MIN(len, SPARSE_WRITE_SIZE);
r1 = write_sparse(f, buf, len1);
} else {