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
In read_batch mode, we now let the code write out the index value
[rsync/rsync.git]
/
main.c
diff --git
a/main.c
b/main.c
index
d609ea5
..
085e578
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-392,7
+392,7
@@
static void do_server_sender(int f_in, int f_out, int argc,char *argv[])
(long)getpid());
}
(long)getpid());
}
- if (am_daemon && lp_write_only(module_id)
&& am_sender
) {
+ if (am_daemon && lp_write_only(module_id)) {
rprintf(FERROR, "ERROR: module is write only\n");
exit_cleanup(RERR_SYNTAX);
return;
rprintf(FERROR, "ERROR: module is write only\n");
exit_cleanup(RERR_SYNTAX);
return;
@@
-529,7
+529,7
@@
static void do_server_recv(int f_in, int f_out, int argc,char *argv[])
argc, (long)getpid());
}
argc, (long)getpid());
}
- if (am_daemon && lp_read_only(module_id)
&& !am_sender
) {
+ if (am_daemon && lp_read_only(module_id)) {
rprintf(FERROR,"ERROR: module is read only\n");
exit_cleanup(RERR_SYNTAX);
return;
rprintf(FERROR,"ERROR: module is read only\n");
exit_cleanup(RERR_SYNTAX);
return;