From fdfd6fe0696959c7a5141d654114ba88fab8a549 Mon Sep 17 00:00:00 2001 From: CismonX Date: Sun, 8 Jun 2025 07:24:39 +0800 Subject: [PATCH] backend_firefox: fix directory attr update --- src/backend_firefox.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend_firefox.c b/src/backend_firefox.c index dad52dd..c975cba 100644 --- a/src/backend_firefox.c +++ b/src/backend_firefox.c @@ -3849,14 +3849,14 @@ bookmark_set ( if (status < 0) { goto fail; } + if (xattr_id >= MOZBM_XATTR_START) { + goto end; + } if (bm_cols.place_id == 0) { // Attempting to update moz_places fields on a directory. status = -EPERM; goto fail; } - if (xattr_id >= MOZBM_XATTR_START) { - goto end; - } place_cols.id = bm_cols.place_id; status = mozplace_update(ctx, &place_cols);