Commit 0a23e336 authored by Wayne Davison's avatar Wayne Davison

Properly ignore source args on a --read-batch command.

parent 8ab02ccd
......@@ -1206,8 +1206,8 @@ static int start_client(int argc, char *argv[])
rprintf(FERROR, "remote destination is not allowed with --read-batch\n");
exit_cleanup(RERR_SYNTAX);
}
remote_argv = argv + argc - 1;
remote_argc = 1;
remote_argv = argv += argc - 1;
remote_argc = argc = 1;
}
if (am_sender) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment