userdbctl: respect selected disposition also when showing gid boundaries

Follow-up for: ad5de3222f
This commit is contained in:
Lennart Poettering 2024-11-22 11:26:34 +01:00
parent 7f8a4f12df
commit 47c5ca237b

View File

@ -585,6 +585,9 @@ static int table_add_gid_boundaries(Table *table, const UIDRange *p) {
FOREACH_ELEMENT(i, uid_range_table) {
_cleanup_free_ char *name = NULL, *comment = NULL;
if (!FLAGS_SET(arg_disposition_mask, UINT64_C(1) << i->disposition))
continue;
if (!uid_range_covers(p, i->first, i->last - i->first + 1))
continue;