mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 02:03:37 +08:00
userdbctl: respect selected disposition also when showing gid boundaries
Follow-up for: ad5de3222f
This commit is contained in:
parent
7f8a4f12df
commit
47c5ca237b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user