backend_firefox: fix directory attr update

This commit is contained in:
CismonX 2025-06-08 07:24:39 +08:00
parent 5082e7c67c
commit fdfd6fe069
No known key found for this signature in database
GPG key ID: 3094873E29A482FB

View file

@ -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);