Merge remote-tracking branch 'origin/feat/size-only' into dev

# Conflicts:
#	src/client/client_cli.c
#	src/client/usage.c
#	src/server/receiver.c
#	src/server/server.c
#	src/shared/config.c
#	src/shared/config.h
#	tests/integration/test_features.py
#	tests/test_config.c
This commit is contained in:
2026-09-04 17:30:14 +02:00
11 changed files with 55 additions and 13 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ int receive_files(Config* config, int fd) {
bool has_old = full_path && file_stat_secure(full_path, &st);
bool match = !config->ignore_times && has_old &&
(unsigned long long)st.st_size == check_size &&
(long long)st.st_mtime == check_mtime;
(config->size_only || (long long)st.st_mtime == check_mtime);
bool sent = send_status(fd, match ? STATUS_OK : STATUS_NEXT);
free(full_path);
free(check_path);