extern int verbose;
extern int rsync_port;
char *auth_user;
-int sanitize_paths = 0;
+extern int sanitize_paths;
/**
* Run a client connected to an rsyncd. The alternative to this
extern int remote_version;
extern int am_sender;
extern char *shell_cmd;
+ extern int list_only;
extern int kludge_around_eof;
extern char *bind_address;
extern int default_af_hint;
/* Old servers may just drop the connection here,
rather than sending a proper EXIT command. Yuck. */
- kludge_around_eof = remote_version < 25;
+ kludge_around_eof = list_only && (remote_version < 25);
while (1) {
if (!read_line(fd, line, sizeof(line)-1)) {