summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2008-09-26 21:34:40 -0700
committerWayne Davison <wayned@samba.org>2008-09-26 21:34:40 -0700
commitd47ac91209ed0c1a7638bff32571dee77ac48d97 (patch)
treeddc0b3af05a8fd568a41faa32a2f6bf6afa88ce9
parent7c573428a988d70c1bb203bc6325520dd244aadc (diff)
downloadrsync-d47ac91209ed0c1a7638bff32571dee77ac48d97.tar.gz
rsync-d47ac91209ed0c1a7638bff32571dee77ac48d97.tar.bz2
rsync-d47ac91209ed0c1a7638bff32571dee77ac48d97.zip
Properly ignore source args on a --read-batch command.
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 6881c8e6..b9a939b3 100644
--- a/main.c
+++ b/main.c
@@ -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) {