fix: complete ignore-times incremental handling
CI / lint (pull_request) Successful in 11s
CI / sanitizers (address) (pull_request) Successful in 37s
CI / sanitizers (undefined) (pull_request) Successful in 36s
CI / fuzz-build (pull_request) Successful in 15s
CI / coverage (pull_request) Successful in 32s
CI / build-and-test (pull_request) Successful in 1m15s
CI / valgrind (pull_request) Successful in 33s

This commit is contained in:
2026-09-03 21:49:10 +02:00
parent 230401c629
commit 1ebe261e05
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -375,7 +375,8 @@ File* receive_incremental_check(int fd, const Config* config, bool* skipped) {
close(old_fd);
}
bool match = has_old_file && (unsigned long long)st.st_size == check_size;
bool match =
!config->ignore_times && has_old_file && (unsigned long long)st.st_size == check_size;
if (match && config->checksum) {
uint64_t old_checksum = old_size == 0 ? delta_xxhash64("", 0) : 0;
if (old_data)