X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/0f0ea7f779623fc4cad2bbf8c955b32d37588127..7a176e87d56de890fed07b1621277ab74b21b706:/main.c diff --git a/main.c b/main.c index 74d205f0..168f83e1 100644 --- a/main.c +++ b/main.c @@ -640,14 +640,14 @@ static int copy_argv (char *argv[]) } -/* +/** * Start a client for either type of remote connection. Work out * whether the arguments request a remote shell or rsyncd connection, * and call the appropriate connection function, then run_client. * * Calls either start_socket_client (for sockets) or do_cmd and * client_run (for ssh). - */ + **/ static int start_client(int argc, char *argv[]) { char *p; @@ -694,7 +694,7 @@ static int start_client(int argc, char *argv[]) p = find_colon(argv[0]); if (p) { - if (p[1] == ':') { + if (p[1] == ':') { /* double colon */ *p = 0; return start_socket_client(argv[0], p+2, argc-1, argv+1); } @@ -716,12 +716,6 @@ static int start_client(int argc, char *argv[]) p = find_colon(argv[argc-1]); if (!p) { local_server = 1; - /* - * disable "rsync algorithm" when both sides local, - * except when creating a batch update - */ - if (!write_batch && whole_file == -1) - whole_file = 1; } else if (p[1] == ':') { *p = 0; return start_socket_client(argv[argc-1], p+2, argc-1, argv);