mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
userdbctl: correct uid_range_covers check
The third param should be the number of uids.
This commit is contained in:
@@ -535,7 +535,7 @@ static int table_add_gid_boundaries(Table *table, const UIDRange *p) {
|
||||
FOREACH_ARRAY(i, uid_range_table, ELEMENTSOF(uid_range_table)) {
|
||||
_cleanup_free_ char *name = NULL, *comment = NULL;
|
||||
|
||||
if (!uid_range_covers(p, i->first, i->last))
|
||||
if (!uid_range_covers(p, i->first, i->last - i->first + 1))
|
||||
continue;
|
||||
|
||||
name = strjoin(special_glyph(SPECIAL_GLYPH_ARROW_DOWN),
|
||||
|
||||
Reference in New Issue
Block a user