Properly ignore source args on a --read-batch command.
authorWayne Davison <wayned@samba.org>
Sat, 27 Sep 2008 03:45:49 +0000 (20:45 -0700)
committerWayne Davison <wayned@samba.org>
Sat, 27 Sep 2008 03:45:49 +0000 (20:45 -0700)
main.c

diff --git a/main.c b/main.c
index f342150..c050aaa 100644 (file)
--- 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) {