Merge "system_properties.cpp: special case ro.* properties"
This commit is contained in:
commit
ffa54cd7ba
@ -826,6 +826,10 @@ static bool map_system_property_area(bool access_rw, bool* fsetxattr_failed) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static prop_area* get_prop_area_for_name(const char* name) {
|
static prop_area* get_prop_area_for_name(const char* name) {
|
||||||
|
if (strncmp(name, "ro.", 3) == 0) {
|
||||||
|
name += 3;
|
||||||
|
}
|
||||||
|
|
||||||
auto entry = list_find(prefixes, [name](prefix_node* l) {
|
auto entry = list_find(prefixes, [name](prefix_node* l) {
|
||||||
return l->prefix[0] == '*' || !strncmp(l->prefix, name, l->prefix_len);
|
return l->prefix[0] == '*' || !strncmp(l->prefix, name, l->prefix_len);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user