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 running as --daemon in the background and using a "log file" rsyncd.conf
[rsync/rsync.git]
/
clientserver.c
diff --git
a/clientserver.c
b/clientserver.c
index
7518e3e
..
0164d07
100644
(file)
--- a/
clientserver.c
+++ b/
clientserver.c
@@
-38,6
+38,11
@@
int start_socket_client(char *host, char *path, int argc, char *argv[])
extern int am_sender;
extern struct in_addr socket_address;
extern int am_sender;
extern struct in_addr socket_address;
+ if (argc == 0 && !am_sender) {
+ extern int list_only;
+ list_only = 1;
+ }
+
if (*path == '/') {
rprintf(FERROR,"ERROR: The remote path must start with a module name\n");
return -1;
if (*path == '/') {
rprintf(FERROR,"ERROR: The remote path must start with a module name\n");
return -1;
@@
-201,7
+206,7
@@
static int rsync_module(int fd, int i)
p = lp_exclude(i);
add_exclude_line(p);
p = lp_exclude(i);
add_exclude_line(p);
- log_
open
();
+ log_
init
();
if (use_chroot) {
if (chroot(lp_path(i))) {
if (use_chroot) {
if (chroot(lp_path(i))) {
@@
-444,7
+449,7
@@
int daemon_main(void)
exit_cleanup(RERR_SYNTAX);
}
exit_cleanup(RERR_SYNTAX);
}
- log_
open
();
+ log_
init
();
rprintf(FINFO,"rsyncd version %s starting\n",VERSION);
rprintf(FINFO,"rsyncd version %s starting\n",VERSION);