summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2008-09-26 20:45:49 -0700
committerWayne Davison <wayned@samba.org>2008-09-26 20:45:49 -0700
commit0a23e33630d96f6083b40bc98d7a12d7ad7632f6 (patch)
tree8fa1a04a169714f1ff0aacf1d68f5e2f44d49daf /main.c
parent8ab02ccd527f5036935996ab31faffdbcbad56b0 (diff)
downloadrsync-0a23e33630d96f6083b40bc98d7a12d7ad7632f6.tar.gz
rsync-0a23e33630d96f6083b40bc98d7a12d7ad7632f6.tar.bz2
rsync-0a23e33630d96f6083b40bc98d7a12d7ad7632f6.zip
Properly ignore source args on a --read-batch command.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index f342150b..c050aaa1 100644
--- a/main.c
+++ b/main.c
@@ -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) {