Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6eb770b
)
Limit the block-size that the user can specify.
author
Wayne Davison
<wayned@samba.org>
Fri, 16 Jul 2004 18:01:30 +0000
(18:01 +0000)
committer
Wayne Davison
<wayned@samba.org>
Fri, 16 Jul 2004 18:01:30 +0000
(18:01 +0000)
options.c
patch
|
blob
|
blame
|
history
diff --git
a/options.c
b/options.c
index
4179bfb
..
47bba71
100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-635,6
+635,12
@@
int parse_arguments(int *argc, const char ***argv, int frommain)
}
#endif
}
#endif
+ if (block_size > MAX_MAP_SIZE) {
+ rprintf(FINFO, "limiting block-size to %d bytes\n",
+ MAX_MAP_SIZE);
+ block_size = MAX_MAP_SIZE;
+ }
+
if (write_batch && read_batch) {
rprintf(FERROR,
"write-batch and read-batch can not be used together\n");
if (write_batch && read_batch) {
rprintf(FERROR,
"write-batch and read-batch can not be used together\n");