git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
283887d
)
Only sparse_files > 0 now indicates option is enabled.
author
Wayne Davison
<wayned@samba.org>
Thu, 28 Dec 2006 07:54:04 +0000
(07:54 +0000)
committer
Wayne Davison
<wayned@samba.org>
Thu, 28 Dec 2006 07:54:04 +0000
(07:54 +0000)
fileio.c
patch
|
blob
|
history
diff --git
a/fileio.c
b/fileio.c
index a1b68d1c6c59e5975a09f0d170f69a1b4030b872..52e34bdaef408be0e4344fa5849b152b92ab20e4 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;
- if (sparse_files) {
+ if (sparse_files
> 0
) {
int len1 = MIN(len, SPARSE_WRITE_SIZE);
r1 = write_sparse(f, buf, len1);
} else {