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))) {
exit_cleanup(RERR_SYNTAX);
}
- log_open();
+ log_init();
rprintf(FINFO,"rsyncd version %s starting\n",VERSION);