diff options
author | Wayne Davison <wayned@samba.org> | 2008-09-26 20:45:49 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2008-09-26 20:45:49 -0700 |
commit | 0a23e33630d96f6083b40bc98d7a12d7ad7632f6 (patch) | |
tree | 8fa1a04a169714f1ff0aacf1d68f5e2f44d49daf /main.c | |
parent | 8ab02ccd527f5036935996ab31faffdbcbad56b0 (diff) | |
download | rsync-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |