From 10c327a558c7a869e4f7690f4f92aee4e5525cce Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Wed, 20 May 2026 00:23:43 +0200 Subject: [PATCH] Fixed syncing of the directory of the content file --- cmdline/state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmdline/state.c b/cmdline/state.c index 4352857f..1f65e702 100644 --- a/cmdline/state.c +++ b/cmdline/state.c @@ -4548,9 +4548,9 @@ static void state_rename_content(struct snapraid_state* state) pathcpy(dir, sizeof(dir), content->content); - slash = strrchr(tmp, '/'); + slash = strrchr(dir, '/'); if (slash) - *slash = 0; + slash[1] = 0; else pathcpy(dir, sizeof(dir), ".");