Skip to content

Commit

Permalink
Reject the use of --compare-dest or --link-dest with --inplace
Browse files Browse the repository at this point in the history
(it will take extra code to suppor this).
  • Loading branch information
Wayne Davison committed Sep 7, 2004
1 parent f8c8ef9 commit bd397b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions options.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bd397b8

Please sign in to comment.