]> git.ipfire.org Git - thirdparty/shadow.git/commit
have_range: open the subid db if needed
authorSerge Hallyn <serge@hallyn.com>
Fri, 28 Jun 2024 06:30:40 +0000 (01:30 -0500)
committerAlejandro Colomar <alx@kernel.org>
Fri, 28 Jun 2024 14:16:33 +0000 (16:16 +0200)
commit75ea679799a9904e042db6d09f908202c54c36f4
treed4658fe84692982a7ab4c715fc49d08857336716
parent81b5b2692501265634072783017031d3d5fe0b9c
have_range: open the subid db if needed

When we run for instance

  check_subid_range ubuntu u 100000 65536

when ubuntu user is defined and has that range, it returns no entries
because the subid db is not opened.  Open it in have_range if needed.

I haven't figured out why this ever worked.

Signed-off-by: Serge Hallyn <serge@hallyn.com>
lib/subordinateio.c