]> 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 21:39:37 +0000 (23:39 +0200)
commit610b0795105fb0d34bdb8ac40cac10a703f917f9
tree276abdbf0ebcaefaa920f5d49a96e5c74ef991d9
parent118f9b53e37aabcfe0f8462b09f38d10ddafaaab
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>
Cherry-picked-from: 75ea679799a9 ("have_range: open the subid db if needed")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/subordinateio.c