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;
p = lp_exclude(i);
add_exclude_line(p);
- log_open();
+ log_init();
if (use_chroot) {
if (chroot(lp_path(i))) {
set_socket_options(fd,"SO_KEEPALIVE");
set_socket_options(fd,lp_socket_options());
-
+ set_nonblocking(fd);
io_printf(fd,"@RSYNCD: %d\n", PROTOCOL_VERSION);
exit_cleanup(RERR_SYNTAX);
}
- log_open();
+ log_init();
rprintf(FINFO,"rsyncd version %s starting\n",VERSION);