diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-11-22 11:26:34 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-11-22 11:28:30 +0100 |
commit | 47c5ca237b3074e143ad77a5926d9f442ed17eb3 (patch) | |
tree | 899312d19eecac34a1b9f38e07d4a4f54c37b399 /src | |
parent | userdbctl: fix counting (diff) | |
download | systemd-47c5ca237b3074e143ad77a5926d9f442ed17eb3.tar.xz systemd-47c5ca237b3074e143ad77a5926d9f442ed17eb3.zip |
userdbctl: respect selected disposition also when showing gid boundaries
Follow-up for: ad5de3222f7
Diffstat (limited to 'src')
-rw-r--r-- | src/userdb/userdbctl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/userdb/userdbctl.c b/src/userdb/userdbctl.c index 19de87d01e..bc69175b10 100644 --- a/src/userdb/userdbctl.c +++ b/src/userdb/userdbctl.c @@ -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; |