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
When "refuse options = compress" is set in rsyncd.conf, silently send files
[rsync/rsync.git]
/
options.c
diff --git
a/options.c
b/options.c
index
482f85e
..
71a08f5
100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-142,7
+142,7
@@
void usage(int F)
rprintf(F,"the block size defaults to %d\n",BLOCK_SIZE);
rprintf(F,"\nPlease see the rsync(1) and rsyncd.conf(5) man pages for full documentation\n");
rprintf(F,"the block size defaults to %d\n",BLOCK_SIZE);
rprintf(F,"\nPlease see the rsync(1) and rsyncd.conf(5) man pages for full documentation\n");
- rprintf(F,"See http://
samba.anu.edu.au/rsync
/ for updates and bug reports\n");
+ rprintf(F,"See http://
rsync.samba.org
/ for updates and bug reports\n");
}
enum {OPT_VERSION,OPT_SUFFIX,OPT_SENDER,OPT_SERVER,OPT_EXCLUDE,
}
enum {OPT_VERSION,OPT_SUFFIX,OPT_SENDER,OPT_SERVER,OPT_EXCLUDE,
@@
-238,6
+238,13
@@
static int check_refuse_options(char *ref, int opt)
while ((p = strstr(ref,name))) {
if ((p==ref || p[-1]==' ') &&
(p[len] == ' ' || p[len] == 0)) {
while ((p = strstr(ref,name))) {
if ((p==ref || p[-1]==' ') &&
(p[len] == ' ' || p[len] == 0)) {
+ if (opt == 'z') {
+ /* don't actually refuse this one, just */
+ /* minimize the compression level for now */
+ extern int default_compression_level;
+ default_compression_level = 0;
+ return 0;
+ }
slprintf(err_buf,sizeof(err_buf),
"The '%s' option is not supported by this server\n", name);
return 1;
slprintf(err_buf,sizeof(err_buf),
"The '%s' option is not supported by this server\n", name);
return 1;