mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-03-10 18:37:40 -04:00
Avoid newest test when no destination was specified.
This commit is contained in:
2
main.c
2
main.c
@@ -874,7 +874,7 @@ static int start_client(int argc, char *argv[])
|
||||
if (shell_path) { /* source is remote */
|
||||
char *dummy1;
|
||||
int dummy2;
|
||||
if (check_for_hostspec(argv[argc], &dummy1, &dummy2)) {
|
||||
if (argc && check_for_hostspec(argv[argc], &dummy1, &dummy2)) {
|
||||
rprintf(FERROR,
|
||||
"The source and destination cannot both be remote.\n");
|
||||
exit_cleanup(RERR_SYNTAX);
|
||||
|
||||
Reference in New Issue
Block a user