mirror of
https://git.sr.ht/~cismonx/bookmarkfs
synced 2025-07-23 17:48:52 +00:00
fs_ops: fix deletion of tag directories
This commit is contained in:
parent
d5eae85774
commit
495f8592e6
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue