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

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