sd-bus: refuse properties that claim to be both writable and constant at the same time
This commit is contained in:
@@ -1682,6 +1682,11 @@ static int add_object_vtable_internal(
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (v->flags & SD_BUS_VTABLE_PROPERTY_CONST) {
|
||||
r = -EINVAL;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
/* Fall through */
|
||||
|
||||
case _SD_BUS_VTABLE_PROPERTY: {
|
||||
|
||||
Reference in New Issue
Block a user