X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/09b7f5dbb189f6d1a3543d8f4f2f22b20d5fd3da..45a8354004ecbc1c0b03d6e880b512854ed9439a:/clientserver.c diff --git a/clientserver.c b/clientserver.c index df847ffc..0164d070 100644 --- 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; + 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; @@ -201,7 +206,7 @@ static int rsync_module(int fd, int i) p = lp_exclude(i); add_exclude_line(p); - log_open(); + log_init(); if (use_chroot) { if (chroot(lp_path(i))) { @@ -363,7 +368,7 @@ static int start_daemon(int fd) set_socket_options(fd,"SO_KEEPALIVE"); set_socket_options(fd,lp_socket_options()); - + set_nonblocking(fd); io_printf(fd,"@RSYNCD: %d\n", PROTOCOL_VERSION); @@ -444,7 +449,7 @@ int daemon_main(void) exit_cleanup(RERR_SYNTAX); } - log_open(); + log_init(); rprintf(FINFO,"rsyncd version %s starting\n",VERSION);