diff options
author | Wayne Davison <wayned@samba.org> | 2008-09-26 21:34:40 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2008-09-26 21:34:40 -0700 |
commit | d47ac91209ed0c1a7638bff32571dee77ac48d97 (patch) | |
tree | ddc0b3af05a8fd568a41faa32a2f6bf6afa88ce9 | |
parent | 7c573428a988d70c1bb203bc6325520dd244aadc (diff) | |
download | rsync-d47ac91209ed0c1a7638bff32571dee77ac48d97.tar.gz rsync-d47ac91209ed0c1a7638bff32571dee77ac48d97.tar.bz2 rsync-d47ac91209ed0c1a7638bff32571dee77ac48d97.zip |
Properly ignore source args on a --read-batch command.
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1187,8 +1187,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) { |