From c7ac039523efe0eb5ad4e394d248fcb10cb71c3e Mon Sep 17 00:00:00 2001 From: TapTap Date: Wed, 16 Sep 2026 23:26:22 +0200 Subject: [PATCH] docs(parity): correct implied-dir walk comment --- src/client/client_send.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/client_send.c b/src/client/client_send.c index c38ec1e..76d1bd1 100644 --- a/src/client/client_send.c +++ b/src/client/client_send.c @@ -294,8 +294,8 @@ static bool append_implied_dir_times(const Config* config, ArrayList* dir_entrie while (flen > 1 && fs[flen - 1] == '/') fs[--flen] = '\0'; bool ok = true; - /* Walk the source path upwards one component at a time; the previous - iteration's truncation is restored so every ancestor is stat'ed in full. */ + /* Walk the source path upwards one component at a time (fs is truncated in + place, so each step targets the next implied ancestor). */ for (int depth = ncomp - 2; depth >= 0 && ok; depth--) { char* slash = strrchr(fs, '/'); if (!slash || slash == fs)