"...0d0cea2424ae97b27447dc64a7dbfae83c036c45b403392f0e8ba.png" did not exist on "8c87df457cb58fe75b9b893007917cf8095660a0"
ceph: fix xattr rbtree search
Fix xattr name comparison in rbtree search for strings that share a prefix. The *name argument is null terminated, but the xattr name is not, so we need to use strncmp, but that means adjusting for the case where name is a prefix of xattr->name. The corresponding case in __set_xattr() already handles this properly (although in that case *name is also not null terminated). Reported-by:Sergiy Kibrik <sakib@meta.ua> Signed-off-by:
Sage Weil <sage@newdream.net>
Loading
Please register or sign in to comment