Skip to content

Commit f1e3434

Browse files
committed
Trust the sender on a local transfer.
1 parent 48252c3 commit f1e3434

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ extern int backup_dir_len;
8989
extern int basis_dir_cnt;
9090
extern int default_af_hint;
9191
extern int stdout_format_has_i;
92+
extern int trust_sender_filter;
93+
extern int trust_sender_args;
9294
extern struct stats stats;
9395
extern char *stdout_format;
9496
extern char *logfile_format;
@@ -1471,8 +1473,10 @@ static int start_client(int argc, char *argv[])
14711473
}
14721474

14731475
/* A local transfer doesn't unbackslash anything, so leave the args alone. */
1474-
if (local_server)
1476+
if (local_server) {
14751477
old_style_args = 2;
1478+
trust_sender_args = trust_sender_filter = 1;
1479+
}
14761480

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

0 commit comments

Comments
 (0)