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 c1553bd5d6 - Show all commits
+4 -3
View File
@@ -3172,9 +3172,10 @@ char* file_receive_basis_delete_relative(const Config* config, const char* path)
root_len--; root_len--;
if (strncmp(path, root, root_len) != 0) if (strncmp(path, root, root_len) != 0)
return NULL; return NULL;
if (root_len == 1 && root[0] == '/') { if (root_len == 1) {
/* The receive root is "/": every absolute path is below it, and the child /* `root` is "/" (the only single-character absolute root): every absolute
relative form is everything after the leading '/'. */ path is below it, and the child relative form is everything after the
leading '/'. */
if (path[1] == '\0') if (path[1] == '\0')
return NULL; /* identical to the root, not a child */ return NULL; /* identical to the root, not a child */
return str_dup(path + 1); return str_dup(path + 1);