Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9425918
)
Avoid newest test when no destination was specified.
author
Wayne Davison
<wayned@samba.org>
Fri, 15 Jul 2005 19:10:03 +0000
(19:10 +0000)
committer
Wayne Davison
<wayned@samba.org>
Fri, 15 Jul 2005 19:10:03 +0000
(19:10 +0000)
main.c
patch
|
blob
|
blame
|
history
diff --git
a/main.c
b/main.c
index
5ebe2dd
..
5741ef9
100644
(file)
--- a/
main.c
+++ b/
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);