From 495f8592e6df8888ac6f8f4fb9a1b002f573544e Mon Sep 17 00:00:00 2001 From: CismonX Date: Mon, 2 Jun 2025 08:41:33 +0800 Subject: [PATCH] fs_ops: fix deletion of tag directories --- src/fs_ops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fs_ops.c b/src/fs_ops.c index 11791c2..9834108 100644 --- a/src/fs_ops.c +++ b/src/fs_ops.c @@ -1352,12 +1352,14 @@ intfs_delete ( ) { int status = -EPERM; + int64_t bm_parent_id = BOOKMARKS_ROOT_ID; switch (parent_id) { case INTFS_ID_TAGS: flags |= BOOKMARKFS_BOOKMARK_TYPE(TAG); + bm_parent_id = TAGS_ROOT_ID; // fallthrough case INTFS_ID_BOOKMARKS: - status = bm_delete(BOOKMARKS_ROOT_ID, name, flags); + status = bm_delete(bm_parent_id, name, flags); break; case INTFS_ID_KEYWORDS: