Fixed syncing of the directory of the content file

This commit is contained in:
Andrea Mazzoleni 2026-05-20 00:23:43 +02:00
parent 4d09bffb94
commit 10c327a558

View file

@ -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), ".");