Reject attempts to combine --sparse with --inplace.

This commit is contained in:
Wayne Davison
2005-08-30 02:57:19 +00:00
parent 4afcb709a7
commit cfce9f6dc3

View File

@@ -1159,6 +1159,14 @@ int parse_arguments(int *argc, const char ***argv, int frommain)
bwlimit_writemax = 512; bwlimit_writemax = 512;
} }
if (sparse_files && inplace) {
/* Note: we don't check for this below, because --update is
* OK with --sparse (as long as redos are handled right). */
snprintf(err_buf, sizeof err_buf,
"--sparse cannot be used with --inplace\n");
return 0;
}
if (append_mode) { if (append_mode) {
if (whole_file > 0) { if (whole_file > 0) {
snprintf(err_buf, sizeof err_buf, snprintf(err_buf, sizeof err_buf,