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
added "dont compress" option with the default setting of
[rsync/rsync.git]
/
options.c
diff --git
a/options.c
b/options.c
index
6fa5963
..
482f85e
100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-236,7
+236,8
@@
static int check_refuse_options(char *ref, int opt)
len = strlen(name);
while ((p = strstr(ref,name))) {
len = strlen(name);
while ((p = strstr(ref,name))) {
- if (p[len] == ' ' || p[len] == 0) {
+ if ((p==ref || p[-1]==' ') &&
+ (p[len] == ' ' || p[len] == 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;