extern int rsync_port;
char *auth_user;
extern int sanitize_paths;
+extern int filesfrom_fd;
/**
* Run a client connected to an rsyncd. The alternative to this
argp = argv;
ret = parse_arguments(&argc, (const char ***) &argp, 0);
+ if (filesfrom_fd == 0)
+ filesfrom_fd = f_in;
+
if (request) {
if (*auth_user) {
rprintf(FINFO,"rsync %s %s from %s@%s (%s)\n",
exit_cleanup(RERR_SYNTAX);
}
+ log_init();
+
if (!am_server) {
set_socket_options(f_in, "SO_KEEPALIVE");
set_socket_options(f_in, lp_socket_options());