projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f8a4f1
)
userdbctl: respect selected disposition also when showing gid boundaries
author
Lennart Poettering
<lennart@poettering.net>
Fri, 22 Nov 2024 10:26:34 +0000
(11:26 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 22 Nov 2024 10:28:30 +0000
(11:28 +0100)
Follow-up for:
ad5de3222f7
src/userdb/userdbctl.c
patch
|
blob
|
history
diff --git
a/src/userdb/userdbctl.c
b/src/userdb/userdbctl.c
index 19de87d01e14c20f7e0880420b56c52b6cb479ca..bc69175b106d3b51c3e2a975d54ac73e7459cc9e 100644
(file)
--- 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;