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:
f8c8ef9
)
Reject the use of --compare-dest or --link-dest with --inplace
author
Wayne Davison
<wayned@samba.org>
Tue, 7 Sep 2004 20:36:36 +0000
(20:36 +0000)
committer
Wayne Davison
<wayned@samba.org>
Tue, 7 Sep 2004 20:36:36 +0000
(20:36 +0000)
(it will take extra code to suppor this).
options.c
patch
|
blob
|
blame
|
history
diff --git
a/options.c
b/options.c
index
a1c8df5
..
f51e177
100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-827,6
+827,12
@@
int parse_arguments(int *argc, const char ***argv, int frommain)
am_server ? "server" : "client");
return 0;
#endif
+ if (compare_dest) {
+ snprintf(err_buf, sizeof err_buf,
+ "--inplace does not yet work with %s\n",
+ link_dest ? "--link-dest" : "--compare-dest");
+ return 0;
+ }
} else if (partial_dir) {
if (strcmp(partial_dir, ".") == 0)
partial_dir = NULL;