rsync 3.4.1 drop-in parity (#285-#297) + parity completion (protocol 2.26.0) #298

Merged
TapTap merged 77 commits from feat/rsync-parity into dev 2026-09-17 20:33:17 +02:00
Showing only changes of commit c7ac039523 - Show all commits
+2 -2
View File
@@ -294,8 +294,8 @@ static bool append_implied_dir_times(const Config* config, ArrayList* dir_entrie
while (flen > 1 && fs[flen - 1] == '/') while (flen > 1 && fs[flen - 1] == '/')
fs[--flen] = '\0'; fs[--flen] = '\0';
bool ok = true; bool ok = true;
/* Walk the source path upwards one component at a time; the previous /* Walk the source path upwards one component at a time (fs is truncated in
iteration's truncation is restored so every ancestor is stat'ed in full. */ place, so each step targets the next implied ancestor). */
for (int depth = ncomp - 2; depth >= 0 && ok; depth--) { for (int depth = ncomp - 2; depth >= 0 && ok; depth--) {
char* slash = strrchr(fs, '/'); char* slash = strrchr(fs, '/');
if (!slash || slash == fs) if (!slash || slash == fs)