From: Wayne Davison Date: Sat, 27 Sep 2008 04:34:40 +0000 (-0700) Subject: Properly ignore source args on a --read-batch command. X-Git-Tag: v3.0.5pre1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d47ac91209ed0c1a7638bff32571dee77ac48d97;p=thirdparty%2Frsync.git Properly ignore source args on a --read-batch command. --- 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) {