Skip to content

Commit

Permalink
Trust the sender on a local transfer.
Browse files Browse the repository at this point in the history
  • Loading branch information
WayneD committed Dec 2, 2022
1 parent 48252c3 commit f1e3434
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ extern int backup_dir_len;
extern int basis_dir_cnt;
extern int default_af_hint;
extern int stdout_format_has_i;
extern int trust_sender_filter;
extern int trust_sender_args;
extern struct stats stats;
extern char *stdout_format;
extern char *logfile_format;
Expand Down Expand Up @@ -1471,8 +1473,10 @@ static int start_client(int argc, char *argv[])
}

/* A local transfer doesn't unbackslash anything, so leave the args alone. */
if (local_server)
if (local_server) {
old_style_args = 2;
trust_sender_args = trust_sender_filter = 1;
}

if (!rsync_port && remote_argc && !**remote_argv) /* Turn an empty arg into a dot dir. */
*remote_argv = ".";
Expand Down

0 comments on commit f1e3434

Please sign in to comment.